0
Can you just tell me where the error is in my code??? https://code.sololearn.com/cOC8JeFzvMdr/?ref=app
https://code.sololearn.com/cOC8JeFzvMdr/?ref=app
2 Antworten
+ 8
Here conio headerfile is not woRkiNg remove getch function . You cannot write main function void u have to write int type . Otherwise your code is correct.
Try this one
#include <stdio.h>
int main()
{
int a1,a2,sum,diff;
scanf("%d %d",&a1,&a2);
sum=a1+a2;
diff=sum-a1;
printf("%d %d",sum,diff);
// getch();
}
+ 3
Thanks
I have tried these in my PC it worked but not working in mobile compiler