My code:-
#include<stdio.h>
#include<conio.h>
void main(){
int a,b,c;
printf("Enter the 1st number:");
scanf("%d",a);
printf("Enter the 2nd number:");
scanf("%d",b);
c=a*b;
printf("The value of %d * %d is %d",a,b,c);
getch();
}
Now when I execute this program in Turbo C++, This gives as the output:-
Enter the 1st number:10
Enter the 2nd number:10
The value of 1308 * 1320 is 22625
Why is this happening?