Long is a type of data that allows a plenty of numbers, if you need to show too much numbers, here's your type. By the way, signed and unsigned not work for long. Unsigned int is the same memory space for long, so use it as you want.
#include <stdio.h>
main()
{
long st, nd;
printf("Enter the first number ");
scanf("%d", &st);
printf("Enter the second number ");
scanf("%d", &nd);
printf("The result is %d", st * nd);
getchar();
getchar();
getchar();
}
No comments:
Post a Comment