ADD file via upload

main
pqfc6e4lh 1 year ago
parent 46a0a5c9c4
commit 1ed84493ce

@ -0,0 +1,43 @@
#include<stdio.h>
void Input(int b[],float c[],float d[],float e[])/*ÊäÈë³ÌÐò*/
{
int i;
for(i=1;i<=3;i++)
scanf("%d%f%f%f",&b[i],&c[i],&d[i],&e[i]);
for(i=1;i<=3;i++)
printf("%d,%.1f,%.1f,%.1f\n",b[i],c[i],d[i],e[i]);
}
int main()
{
int i;
char a;
int b[1001];
float c[1001],d[1001],e[1001];
for(i=1;i<=30;i++)
printf(" ");
printf("1.Input\n");
for(i=1;i<=30;i++)
printf(" ");
printf("2.Output\n");
for(i=1;i<=30;i++)
printf(" ");
printf("3.Order\n");
for(i=1;i<=30;i++)
printf(" ");
printf("4.Quit\n");
scanf("%c",&a);
if(a=='i')
{
printf("Please input info of the three students:");
Input(b,c,d,e);
}
else if(a=='o')
printf("You are trying to Output info");
else if(a=='m')
printf("You are trying to Make things ordered");
else if(a=='q')
printf("You are about to Quit");
else
printf("Wrong input");
return 0;
}
Loading…
Cancel
Save