Write a program with C language, input four numbers from the keyboard, and get the maximum value

Write a program with C language, input four numbers from the keyboard, and get the maximum value


The code is as follows:
#include
void main()
{
float a,b,c,d,max;
Printf ("please enter a four digit number):";
scanf("%f%f%f%f",&a,&b,&c,&d);
max=a;
if(max



Do a C language programming problem, ten thousand urgent!
The train departure time is known (input format is 4 digits, such as 0825),
The distance between Party A and Party B (in kilometers),
Speed (km / h). Find the time of the train to the destination,
The required format is (hours: minutes)


# include <stdio.h>int main(void){int time, distance, speed;int hour, minute;printf("Please input the start time (such as 0825): ");scanf("%d",&time);printf("Please input the distance(km): "); scanf("%d",&distance);printf("Please input the speed(km/h): ");scanf("%d",&speed);hour=distance/speed;minute=distance%speed*60/speed;minute=minute+time%100;if(minute>=60){minute=minute-60;hour++;}hour=hour+time/100;printf("Time of arrival:   %d: When you don't consider that you can't divide the minutes exactly, you should be careful when you round the minutes. Just change it a little. The following is the # & nbsp; include & nbsp; & lt; stdio. H & gt; int & nbsp; main (void) {& nbsp; & nbsp; & nbsp; & nbsp; int & nbsp; time, hour, minute; float & nbsp; distance, & nbsp; speed, a; //It's used to store the fractional part of minutes, and it's convenient to place the fractional part of minutes, and it's convenient to place the fractional part of minutes, and it's convenient to place the fractional part of minutes, and it's convenient to place the fractional part of minutes, and it's convenient to place the fractional part of minutes, and it's convenient to place the fractional part of minutes, and it's convenient to be rounded to the decimal part of minutes, and it's convenient to be the & nbsp & amp & nbsp & nbsp & nbsp; nbsp & nbsp & nbsp; nbsp & nbsp & nbsp & nbsp & nbsp; nbsp & nbsp & nbsp; nbsp & nbsp & nbsp & nbsp & nbsp; nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp & nbsp sp; & nbsp;    scanf("%d",&distance);    printf("Please input the speed(km/h): ");    scanf("%d",&speed);    hour=distance/speed;distance-=hour*speed;    a=distance*60/speed;minute=a;a-=minute;if(a> =0.5)minute++;    minute=minute+time%100;    if(minute>=60)    {        minute=minute-60;        hour++;    }    hour=hour+time/100;     printf("Time of arrival:  %d:%02d\n",hour,minute);    return 0;}



C language programming: input the value of N from the keyboard, calculate the value of S = 1 + 2 + 3 +. + n! The program is as simple as possible!


The simplest program, VC6, runs through debugging
#include
void main()
{
int n,i,s=0;
scanf("%d",&n);
for(i=1;i