Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <Windows.h>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "Russian");
- float V, S, H;
- cout << "Введите объём цилиндра" << "\n";
- cin >> V;
- cout << "\n" << "Введите площадь основания цилиндра" << "\n";
- cin >> S;
- H = V / S;
- cout << "\n" << "Высота цилиндра равна " << H;
- cout << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement