Answer:
Here is c program:
#include<stdio.h>
#include<conio.h>
void main()
{
//Variable declaration
//array to hold 6 values you can change this as needed
float nums[6];
//integer i is for loop variable
int i;
//to hold maximum value
float max=0.0;
//clear screen
clrscr();
//iterate 6 times you can change as per your need
for(i=0;i<6;i++)
{
printf("Enter a number:");
scanf("%f",&nums[i]);
//check if entered value is greater than previous value
//if it is greater then assign it
if(nums[i]>max)
max = nums[i];
}
//print the value
printf("The largest number entered was %f",max);
getch();
}
Explanation:
9) Which date is assigned the serial number of 1?
A. January 1, 1700
B. January 1, 2000
D. January 1, 1800
Answer:
Answer = 25-17
print("25-17", Answer)
Explanation:
You put the sum into a variable which in this case would be Answer and then you can output it with the question.
Answer:
while ( num >= 0) { ... }
Explanation:
Required
Express to execute a while loop with the given condition.
The condition in the question is that: the user input must be greater than or equal to 0.
The statement for this is:
( ) { }
Where num is the input variable