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

21st Oct 2020, 6:24 PM
Kundan Raj
Kundan Raj - avatar
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
21st Oct 2020, 6:27 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
conio.h is for MS-DOS , Sololearn runs on Linux.
21st Oct 2020, 6:30 PM
Bahha┣
Bahha┣ - avatar
+ 1
Thanks buddy
21st Oct 2020, 6:34 PM
Kundan Raj
Kundan Raj - avatar
0
Now it's working
21st Oct 2020, 6:35 PM
Kundan Raj
Kundan Raj - avatar