- Messages
- 1,408
- Reaction score
- 30
- Points
- 48
Code:
#include <stdio.h>
main()
{
int r,s;
printf("Enter Roll Number\n");
scanf("%d",&r);
printf("Enter Serial Number\n");
scanf("%d",&s);
system("clear");
printf("%d\n",r);
printf("%d\n",s);
}
When I enter Roll No = 3332810074 and Serial Number = 14 the output roll number is wrong and the output serial number is right. Can you help me to detect the error.