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
How to use complex numbers in c