I was simply trying to add two numbers. Look at its weird way of taking input its should be doing 12+14 but its calculating 12+13
Here is the code:
#include <stdio.h>
int main(){
int a , b,s;
printf("enter num1");
scanf("%d ",&a);
printf("enter num2");
scanf("%d ",&b);
s = a+b;
printf("sum of %d and %d is >>>>%d",a,b,s);
return 0;
}
Here is the output:
enter num1 12
13
enter num2 14
sum of 12 and 13 is >>>>25
Process returned 0 (0x0) execution time : 6.593 s
Press any key to continue.