Printf and scanf pair for int value
#include <stdio.h>
int main(void)
{
int len, width;
printf("Length: ");
scanf("%d", &len);
printf("Width: ");
scanf("%d", &width);
printf("Area = %d", len * width);
return 0;
}
Related examples in the same category