Laba4/Laba.1/Project1/Source.c

16 lines
329 B
C
Raw Normal View History

2024-12-23 13:58:48 +04:00
#include <stdio.h>
#include <Windows.h>
#include <math.h>
void main() {
SetConsoleCP(1252);
SetConsoleOutputCP(1251);
float h;
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n");
scanf_s("%f", &h);
float g = 9.8;
float t = sqrt(2 * h / g);
printf("<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> %f <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n", h);
printf("<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> %f <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n", t);
}