#include<stdio.h>
int main()
{
int a, b, c;
printf("Enter the two numbers:");
scanf("%d%d \n", &a, &b);
c=a+b;
printf("a+b= %d \n", c);
c=a-b;
printf("a-b= %d \n", c);
c=a*b;
printf("a*b= %d \n", c);
c=a/b;
printf("a/b= %d \n", c);
c=a%b;
printf("Remainder when a divided by b= %d \n", c);
return 0;
}
When running this code, it doesn't ask for any input, but rather just gives a garbage value for all the print functions.
Why?