Recent content by static

  1. S

    Drawing a Square on Black Background: Troubleshooting

    thanks Mark44, it works! I just deleted equation signs from outer and inner loop and beautiful green square appeared.
  2. S

    Drawing a Square on Black Background: Troubleshooting

    My task is to draw a square on black background using ppm. What I did is this loop: for (int h=0; h<=480; h++){ for (int w=0; w<=640; w++){ if (h>100 && h<380 && w<460){ //green paint fprintf (fp, "%s", greenColor); fprintf (fp, "%s", space); } else {...
  3. S

    Finding Solutions for Complex Numbers: z^2 = 1+2i

    Homework Statement Determine all solutions of z^2 = 1+2i in the form z=a+bi, where a and b are real numbers.For this question numerical evaluation is not required. I just don't know how to start.:mad: any clue? thanks!
Back
Top