This commit is contained in:
Павел Родионов
2025-11-13 18:21:23 +07:00
parent e266a25b45
commit 2fca7b75f5
28 changed files with 74 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
#include <stdio.h>
double garmony(double a,double b);
int main(){
double a, b;
printf("Enter: num1 num2\nEnter: ");
scanf(" %lf %lf",&a,&b);
printf("garmony = %lf",garmony(a,b));
return 0;
}
double garmony(double a, double b){
double x;
a *= -1;
b *= -1;
x = (((a+b)/2)*-1);
return x;
}