Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
what is the problem in this programAfter compile and run
Md Nayeem
7y
245
1
Reply
#include<stdio.h>
#include<conio.h>
void
main(){
int
x=0,y=0,result=0;
clrscr();
printf(
"enter first number:"
);
scanf(
"%d"
,&x);
printf(
"enter second number:"
);
scanf(
"%d"
,&y);
result=x+y;
printf(
"sum of 2 numbers:%d "
,result);
getch();
}
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Check on login page to enable / disable users
I am not getting proper output in this C program.