Code:
#include <stdio.h>
void displayInformation(void);
int getInformation(int);
int main(void)
{
int small;
displayInformation();
getInformation(int);
return 0;
}
void displayInformation(void)
{
printf("Welcome to the Squared Cube!\n");
printf("Today we are going to be showing you numbers,\n");
printf("their square and their cube.\n\n");
printf("What you will need to do is: \n");
printf("Enter two numbers below.\n");
printf("The second number must be higher than the lower number.\n\n");
printf("Please enter your two numbers below.\n");
}
int getInformation(int)
{
int small;
scanf("%d", &small);
printf("The small number you chose was &d.", small);
}
Comment