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

24th Sep 2020, 5:45 PM
ArshKhan PathAn
ArshKhan PathAn - avatar
2 Respostas
+ 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(); }
24th Sep 2020, 5:53 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Thanks I have tried these in my PC it worked but not working in mobile compiler
24th Sep 2020, 5:55 PM
ArshKhan PathAn
ArshKhan PathAn - avatar