Compare commits
3 Commits
937af5fba4
...
657ee0dbbf
Author | SHA1 | Date |
---|---|---|
flykhan | 657ee0dbbf | |
flykhan | 1b88461434 | |
flykhan | cb6e3749ee |
|
@ -0,0 +1,9 @@
|
|||
#include <cstdio>
|
||||
|
||||
int main()
|
||||
{
|
||||
float a, b, c;
|
||||
scanf("%f%f%f", &a, &b, &c);
|
||||
printf("MEDIA = %.1f\n", (a * 2 + b * 3 + c * 5) / (2 + 3 + 5));
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
#include <cstdio>
|
||||
|
||||
int main()
|
||||
{
|
||||
char name[10];
|
||||
double a, b;
|
||||
scanf("%s%lf%lf", &name, &a, &b);
|
||||
printf("TOTAL = R$ %.2lf\n", a + b * 0.15);
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
#include <cmath>
|
||||
#include <cstdio>
|
||||
|
||||
int main()
|
||||
{
|
||||
int a, b, c;
|
||||
int max;
|
||||
scanf("%d%d%d", &a, &b, &c);
|
||||
max = (a + b + abs(a - b)) / 2;
|
||||
max = (max + c + abs(max - c)) / 2;
|
||||
printf("%d eh o maior", max);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue