- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
5 Posted Topics
Ok so now i have been able to write the code for adding and subtracting two complex numbers in rectangular form but now need to do the same for multiplication and division in polar form. #include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { struct complex x, y, … | |
#include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { int choice; struct complex x, y, z; { printf("Press 1 to add two complex numbers.\n"); printf("Press 2 to subtract two complex numbers.\n"); printf("Press 3 to multiply two complex numbers.\n"); printf("Press 4 to divide two complex numbers.\n"); printf("Enter your choice\n"); … | |
i don't have a clue what is wrong here.... the program is supposed to add, subtract, multiply and divide two real numbers. #include<stdio.h> float add(float x, float y); float subtract(float x, float y); float multiply(float x, float y); float divide(float x, float y); int main (void) { int choice; float … | |
I have no idea hw to approach this... i need to end my program, shown below by the user pressing the letter Q on the keyboard. Help? #include <stdio.h> #include <stdlib.h> float subtract(float x, float y); int main (void) { float x, y; printf("Please enter a real number:\n"); scanf("%f", &x); … | |
I have an assignment in which i have to add, subtract, multiply and divide two complex numbers and i am very confused as to how to create the program. This is what i have got so far.. #include <stdio.h> #include <complex.h> int main (void) int real, imag; { complex a, … |
The End.