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
+17
View File
@@ -0,0 +1,17 @@
#include <stdio.h>
double larger_of(double a, double b);
int main() {
double a,b,c;
printf("Print: num1 num2\nPrint: ");
scanf(" %lf %lf",&a,&b);
c = larger_of(a,b);
a = c;
b = c;
printf("Larger value is: %lf",a);
return 0;
}
double larger_of(double a, double b){
return ((a>b)?a:b);
}