Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus_rus.1251");
- double h, apof, a, P, S, mult;
- cout << "Ââåäèòå ñòîðîíó îñíîâàíèÿ è âûñîòó ïðàâèëüíîé òðåóãîëüíîé ïèðàìèäû" << endl;
- cin >> a;
- cin >> h;
- apof = 3/2.0 * a * h;
- P = (apof * 3*a)/2;
- cout << "Ïëîùàäü áîêîâîé ïîâåðõíîñòè = " << P << endl;
- cout << "Âî ñêîëüêî ðàç óâåëè÷åíà áîêîâàÿ ñòîðîíà äðóãîé ïèðàìèäû?" << endl;
- cin >> mult;
- apof = 3/2.0 * a * h;
- P = (apof * 3*a*mult)/2;
- cout << "Ïëîùàäü áîêîâîé ïîâåðõíîñòè óâåëè÷åííîé ïèðàìèäû = " << P << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement