input e switch
This commit is contained in:
parent
1520dd49af
commit
7101fd99ff
|
@ -0,0 +1,25 @@
|
|||
int main () {
|
||||
|
||||
int n;
|
||||
float litro, teor;
|
||||
|
||||
|
||||
printf("Quantos barris você quer balancear?");
|
||||
scanf("%d", &n);
|
||||
|
||||
for(int i=0; i <= n; i++) {
|
||||
scanf("%f %f", &litro, &teor);
|
||||
}
|
||||
|
||||
// switch (expression)
|
||||
// {
|
||||
// case /* constant-expression */:
|
||||
// /* code */
|
||||
// break;
|
||||
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue