From 7101fd99ffc6151aaa0cf1320dbe55f2755ef226 Mon Sep 17 00:00:00 2001 From: Kennedy Menezes Date: Tue, 7 Sep 2021 14:33:10 -0300 Subject: [PATCH] input e switch --- 2020/01/função_retorna.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 2020/01/função_retorna.c diff --git a/2020/01/função_retorna.c b/2020/01/função_retorna.c new file mode 100644 index 0000000..35f520c --- /dev/null +++ b/2020/01/função_retorna.c @@ -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; + // } + + +} \ No newline at end of file