Question:How to use complex numbers in c 

Answer 
#include<stdio.h>
int main(){
int a,b;

printf("Enter any complex number in the format a+ib: ");
scanf("%d+i%d",&a,&b);

printf("Real part is: %d",a );
printf("\nImaginary part is: %d",b);

return 0;

}
 

+ ExplanationNot Moderated
+ Report
Total Preview: 476
How to use complex numbers in c
Copyright © 2024. Powered by Intellect Software Ltd