Saved Bookmarks
| 1. |
Write a program to input two complex numbers and to implement multiplication of the given complex numbers. |
|
Answer» a = input("Enter real part of first complex number”) b = input("Enter imaginary part of first complex number”) c = input("Enter real part of second complex number”) d = input("Enter imaginary part of second complex number”) real= a*c - b*d img= a*d + b*c print “Product of the complex numbers=",real, “+i”,img |
|