Code: Select all
#include <stdio.h>
main()
{
int i;
int j;
printf("Put a number");
scanf("%d",&i);
j = i*i;
printf("The result is %d",j);
}
But when I run test1 , there's nothing
So I how can I compile .c file and run it?
Code: Select all
#include <stdio.h>
main()
{
int i;
int j;
printf("Put a number");
scanf("%d",&i);
j = i*i;
printf("The result is %d",j);
}