Computer Science, asked by gouthamghosh25, 1 year ago

Total marks: 12
of questions: 4
Marks allocated to each question: 3
Rewrite the following C++ code after removing any/all syntactical errors with
each correction underlined.
Note : Assume all required header files are already being included in the
program.
#define Equation(p,q)=p+2*q
void main()
float A=3.2;B=4.1;
C=Equation(A,B);
cout<<'Output='<<C<<endl;​

Answers

Answered by gurukulamdivya
0

Answer:

#define Equation(p,q)=p+2*q ;

void main()

{

float A=3.2;B=4.1, C=0.0;

C=Equation(A,B);

cout<<''Output=''<<C<<endl;​

getch();

}

Explanation:

Similar questions