This commit is contained in:
2023-11-25 19:27:12 +01:00
commit 877cf3e76a
9 changed files with 273 additions and 0 deletions

17
pythagoras.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <math.h>
int main() {
int a, b;
double c;
printf("a? ");
scanf("%d", &a);
printf("b? ");
scanf("%d", &b);
c = sqrt((a*a) + (b*b));
printf("c: %f\n", c);
}