Crash Course in C: "A Little Learning Is A Dangerous Thing." (Alexander Pope)
Crash Course in C: "A Little Learning Is A Dangerous Thing." (Alexander Pope)
Detailed design
link Runtime
Library
Executable
Code
#include <stdio.h>
int main (void)
{
int answer;
answer = 5 * 5;
printf ("The square of 5 is %d\n", answer);
return 0;
}
#include <stdio.h>
int main (void)
{
int num;
int answer;
printf ("Enter the integer that you would like squared: \n");
scanf ("%d", &num);
answer = num * num;
printf ("The square of %d is %d\n", num, answer);
return 0;
}