Compare commits

..

5 Commits

Author SHA1 Message Date
flykhan 937af5fba4 面积 2023-03-30 15:38:07 +08:00
flykhan 5a6a417616 球的体积 2023-03-30 15:26:48 +08:00
flykhan af56d2a251 简单计算 2023-03-30 15:19:45 +08:00
flykhan d54496f0d7 简单乘积 2023-03-30 15:12:14 +08:00
flykhan b5eca043a5 时间转换 2023-03-30 15:07:31 +08:00
5 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#include <cstdio>
int main()
{
int a, b;
scanf("%d%d", &a, &b);
printf("PROD = %d\n", a * b);
return 0;
}

View File

@ -0,0 +1,11 @@
#include <cstdio>
int main()
{
int a, b, d, e;
double c, f;
scanf("%d%d%lf", &a, &b, &c);
scanf("%d%d%lf", &d, &e, &f);
printf("VALOR A PAGAR: R$ %.2lf\n", b * c + e * f);
return 0;
}

View File

@ -0,0 +1,13 @@
#include <iostream>
using namespace std;
const double pi = 3.14159;
int main()
{
int R;
cin >> R;
printf("VOLUME = %.3lf", (4 / 3.0) * pi * R * R * R);
return 0;
}

View File

@ -0,0 +1,13 @@
#include <cstdio>
int main()
{
double A, B, C;
scanf("%lf%lf%lf", &A, &B, &C);
printf("TRIANGULO: %.3lf\n", A * C / 2);
printf("CIRCULO: %.3lf\n", 3.14159 * C * C);
printf("TRAPEZIO: %.3lf\n", (A + B) * C / 2);
printf("QUADRADO: %.3lf\n", B * B);
printf("RETANGULO: %.3lf\n", A * B);
return 0;
}

View File

@ -0,0 +1,14 @@
#include <cstdio>
int main()
{
int N;
int h, m, s;
scanf("%d", &N);
h = N / (60 * 60);
m = N % (60 * 60) / 60;
// s = N - h * (60 * 60) - m * 60;
s = N % 60;
printf("%d:%d:%d", h, m, s);
return 0;
}