started assignment and added programs

This commit is contained in:
2025-05-08 00:28:02 +09:00
parent 3ff7ace93a
commit 8912215a06
14 changed files with 130 additions and 102 deletions

12
programs/p26/main.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
int main(void) {
int height;
printf("Input your height in cm: ");
scanf("%d", &height);
printf("Standard weight is %.1fkg.\n", 0.9 * (double)(height - 100));
return 0;
}