#include <stdio.h>
int main()
{
int a, b, c;
c = a * b;
printf("a는?: ");
scanf("%d", &a);
printf("b는?: ");
scanf("%d", &b);
printf("%d * %d = %d ", a, b, c);
return 0;
}
i made a calculation program . but the result is wrong.
if i put 5,10 in a,b c should be 50(510) but the result is 0 i used ab instead of c . then it was solved. but i want to use c variation. what is the problem? should i use double instead of int? please tell me the reason why the problem evoked