0

Why my coding is not understand by compiler? Why it's showing error?

https://code.sololearn.com/cJZXRfwIF5Td/?ref=app

10th Jan 2020, 11:31 AM
Arun Yadav
Arun Yadav - avatar
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
10th Jan 2020, 11:37 AM
MsJ
MsJ - avatar
0
What I have to do if I donot want to change the coding?
10th Jan 2020, 11:45 AM
Arun Yadav
Arun Yadav - avatar
0
Please for future reference, use relevant tags and avoid writing sentence into your question tags 👍
10th Jan 2020, 1:24 PM
Ipang