parent
6cf8ad671d
commit
1eec7c6dc0
@ -0,0 +1,44 @@
|
||||
#include <stdio.h>
|
||||
int main(){
|
||||
char a;
|
||||
float s1[4];
|
||||
float s2[4];
|
||||
float s3[4];
|
||||
float an[3],b[3];
|
||||
int c[3];
|
||||
|
||||
|
||||
printf(" 1.Input\n");
|
||||
printf(" 2.Output\n");
|
||||
printf(" 3.Order\n");
|
||||
printf(" 4.Quit\n");
|
||||
scanf("%c",&a);
|
||||
if(a=='i')
|
||||
{
|
||||
printf("You are trying to Input info\n");
|
||||
scanf("%d %f %f %f",&s1[0],&s1[1],&s1[2],&s1[3]);
|
||||
scanf("%d %f %f %f",&s2[0],&s2[1],&s2[2],&s2[3]);
|
||||
scanf("%d %f %f %f",&s3[0],&s3[1],&s3[2],&s3[3]);
|
||||
printf("%d %.1f %.1f %.1f\n",s1[0],s1[1],s1[2],s1[3]);
|
||||
printf("%d %.1f %.1f %.1f\n",s2[0],s2[1],s2[2],s2[3]);
|
||||
printf("%d %.1f %.1f %.1f\n",s3[0],s3[1],s3[2],s3[3]);
|
||||
}
|
||||
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…
Reference in new issue