Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In completing this task, you will need to use the following constructs: 1. IF /

ID: 3671955 • Letter: I

Question

In completing this task, you will need to use the following constructs:
1. IF / ELSE statements

2. WHILE loops
Other than the items listed above, the TA should not need to cover any additional programming concepts.
For this task, you will prompt the user for a series of numbers and output the largest value entered. Again, continue to prompt the user until a negative number is entered. Here's the sample output (bold underline indicates user input):

Enter number 1: 3

Enter number 2: 7

Enter number 3: 4

Enter number 4: 1

Enter number 5: -1


The largest number entered is: 7

Explanation / Answer

#include<stdio.h>

#include<conio.h>

int main()

{

int largest;

int i,n;

printf(“enter five integer values”);

for(i=5;i<=n;i++)

printf("number");

scanf("%d",number);

if(largest<number)

largest=num;

printf(“largest number is “);

return 0;

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote