0
Why my coding is not understand by compiler? Why it's showing error?
3 Respostas
+ 3
Arun Yadav you are using C code in C++ playground. So if you want to execute first remove old obsolete function getch() and conio.h library, clrscr(); which is only turbo c standard
#include <stdio.h>
int main()
{
int a,b;
printf("Enter the first number:");
scanf("%d",&a);
printf("Enter the second number:");
scanf("%d",&b);
int c=a+b;
printf("Sum of the two numbers is: %d",c);
return 0;
}
in C++ codeplayground something like that would work if u used functionality with cin
https://code.sololearn.com/cNwzoIXNdmui/?ref=app
0
What I have to do if I donot want to change the coding?
0
Please for future reference, use relevant tags and avoid writing sentence into your question tags 👍