Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
THIS PROGRAM IS TO MULTIPLY THE TWO COMPLEX NO.S GIVEN BY THE USER#include #include #include struct complex { int real; int imag; };void main() { clrscr(); complex a,b,c; cout<<"input the real part for first complex number : "; cin>>a.real; cout<<"input the imaginary part for first complex number : "; cin>>a.imag; cout< cout<<"input the real part for second complex number : "; cin>>b.real; cout<<"input the imaginary part for second complex number : "; cin>>b.imag; c.real = (a.real*b.real-a.imag*b.imag)+(a.real*b.imag+a.imag*b.real);// c.imag = a.imag * b.imag; cout< cout<<"the multiplication is : "< getch(); }
Define Four Facilities Provided by C Language Preprocessor? The C language preprocessor provides four separate facilities that you can use as you see fit: Inclusion
how is it made
For your class to work properly, you'll need to define appropriate constructors, extract and insert operators, and of course arithmetic operators. (If you wanted to use it as a gen
Illustrate the Function Definition? The C code that explains what a function does is called the function definition. A function definition has the following form Type fun
# include stdio.h> # include conio.h> # include string.h> void main() { int i=0,j=0; char a[100],temp; clrscr();
What is the difference among a copy constructor and an overloaded assignment operator? Ans) A copy constructor constructs a latest object by using the content of the argument
What are the different types of endless loops? An endless loop can be of two types: i.) A loop that is intentionally designed to go round and round until the condition withi
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
integer size
Simpson's Rule is a more accurate method of numerical integration than the method described in class. Using Simpson's Rule, the integral of a function f between a and b is approxim
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd