if para scanf

This commit is contained in:
Kennedy Menezes 2021-09-07 14:56:42 -03:00
parent f56f4a0988
commit 94483a1540
1 changed files with 4 additions and 14 deletions

View File

@ -1,24 +1,14 @@
int funcaoBalancear () {
int n;
float litro, teor;
float litro1, teor1, litro1, teor2;
printf("Quantos barris você quer balancear?");
scanf("%d", &n);
for(int i=0; i <= n; i++) {
scanf("%f %f", &litro, &teor);
switch ()
{
case:
break;
default:
break;
}
}
if(!(scanf("%f %f %f %f", &litro1, &teor1, &litro2, &teor2)) ||
(litro1 || teor1 || litro2 || teor2) <= 0) return 0;
}
int main () {