0
Code is not working
Here is my code #include <stdio.h> #include <conio.h> int main() { int a,b,result; clrscr(); printf("Enter your number: "); scanf("%d%d%d%d",&a,&b); result=a+b; printf("Your answer is: %d",result); getch(); https://code.sololearn.com/c8j1T0j02076/?ref=app
4 Answers
+ 1
Sololearn does not support conio.h
You don't really need it too, also you added '%d' 4 times but you are taking only 2 inputs.
https://code.sololearn.com/cdxKrEAL79E5/?ref=app
+ 1
conio.h is for MS-DOS , Sololearn runs on Linux.
+ 1
Thanks buddy
0
Now it's working