Recent content by GustavoGG
-
Why my code sometimes prints trash and other times not?
Thanks it worked perfectly. I did not know what you just explained but its clear and now I get it- GustavoGG
- Post #3
- Forum: Programming and Computer Science
-
Why my code sometimes prints trash and other times not?
#include<stdio.h> #include<math.h> #include<complex.h> int main(){ float complex a,b,x=2,y,z; printf("Write the real part followed by the imaginary part of your complex number: \n"); scanf("%f %f",&a,&b); z=a+I*b; printf("z= %f + i%f\n",creal(z),cimag(z)); y=cpow(z,x)...- GustavoGG
- Thread
- Code
- Replies: 4
- Forum: Programming and Computer Science