Md Nayeem

Md Nayeem

  • NA
  • 75
  • 23.8k

what is the problem in this programAfter compile and run

Aug 3 2017 5:43 AM
  1. #include<stdio.h>
  2. #include<conio.h>
  3. void main(){
  4. int x=0,y=0,result=0;
  5. clrscr();
  6. printf("enter first number:");
  7. scanf("%d",&x);
  8. printf("enter second number:");
  9. scanf("%d",&y);
  10. result=x+y;
  11. printf("sum of 2 numbers:%d ",result);
  12. getch();
  13. }


Answers (2)