You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB

1 year ago
#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;
}