started assignment and added programs
This commit is contained in:
12
programs/p26/main.c
Normal file
12
programs/p26/main.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user