How would I go about making a C program that takes in input from the user (of an integer like -232, or 14) and print the integer with the greatest value the user inputted?
So far all I know is (my pseudocode):
int main(void)
{
int variable;
printf("Enter an integer to check if that is the greatest integer you inputted.")
if %d > variable;
printf("The greatest value you entered is %d")
elif
printf("The greatest value you entered is 'variable'")
scanf("%d", &variable) /Will this command help? IDK
}
I don't want the actual code, but the steps/commands I would need to do so. Sorry for making it seem as though I am making others do my work for me. I just started C and I am not very familiar with it :(
Thanks.
PS The program is supposed to store and keep record of the greatest integer inputted.