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: 484
How to use complex numbers in c
Copyright © 2025. Powered by Intellect Software Ltd