var a,b,c,s integer, m,d real; readln (a); readln (b); readln (c); s:=(a+b+c); m:=a*b*c; d:=a*b*c/3 writeln (s,m,d); Это первая задача. Оформи как нужно только, program. uses crt и тд.
lolisc, int main() { int a, b, c,s,m; real = d; printf(" Введите три числа \n"); scanf(" %d%d%d", &a, &b, &c); S = a+b+c; M = a*b*c; D = a*c*b/3; printf("%d*%d*%d=%d \n", a, b, c, M); printf("%d+%d+%d=%d \n", a, b, c, S); printf("(%d+%d+%d)/3 = %f\n", a, b, c, D); _getch(); return 0; } C int main() { int a, b, c,s,m; real = d; printf(" Введите три числа \n"); scanf(" %d%d%d", &a, &b, &c); S = a+b+c; M = a*b*c; D = a*c*b/3; printf("%d*%d*%d=%d \n", a, b, c, M); printf("%d+%d+%d=%d \n", a, b, c, S); printf("(%d+%d+%d)/3 = %f\n", a, b, c, D); _getch(); return 0; }
#include <stdio.h> #include <conio.h> int main() { int a, b, c, sum, g; float d; printf(" Введите три числа \n"); scanf(" %d%d%d", &a, &b, &c); sum = a*b*c; g = a + b + c; d = g / 3.; printf("%d*%d*%d=%d \n", a, b, c, sum); printf("%d+%d+%d=%d \n", a, b, c, g); printf("(%d+%d+%d)/3 = %f\n", a, b, c, d); _getch(); return 0; }
int #include <stdio.h> int main() { int a,b,c; scanf("%d%d%d",a,b,c); int res=a+b+c; printf("Сумма:"); printf("%d",res); printf("\nСреднее арифметическое:"); printf("%d",res/3); res=a*b*c; printf("\nПроизведение:"); printf("%d",res); return 0; } C #include <stdio.h> int main() { int a,b,c; scanf("%d%d%d",a,b,c); int res=a+b+c; printf("Сумма:"); printf("%d",res); printf("\nСреднее арифметическое:"); printf("%d",res/3); res=a*b*c; printf("\nПроизведение:"); printf("%d",res); return 0; }