Kubning hajmi va to’la sirti yuzasini aniqlaydigan dastur kodi
Download 13.14 Kb.
|
Kubning hajmi va to
Kubning hajmi va to’la sirti yuzasini aniqlaydigan dastur kodi: using namespace std; int main() { float a, S, v; cout << "a="; cin >> a; v=a*a*a;
cout << "v=" << v << endl; cout << "S=" << S; return 0; } #include #include using namespace std; int main() { float a, b, c, S; cout << "a="; cin >> a; cout << "b="; cin >> b; c= sqrt(a*a+b*b); S= a*b/2; cout << "c=" << c << endl; cout << "S=" << S << endl; return 0; } #include #include using namespace std; int main() { float a, b, arif, geo; cout << "a="; cin >> a; cout << "b="; cin >> b; arif=(a+b)/2; geo=sqrt(a*b); cout << "arif=" << arif << endl; cout << "geo=" << geo; return 0; } #include # include using namespace std; int main() { const int g=10; float t, H; cout << "H="; cin >> H; t = sqrt(2*H/g); cout << "t=" << t; return 0; } #include #include using namespace std; int main() { float a, S; cout << "a="; cin >>a; S = sqrt(3)/4*a*a; cout << "S=" << S; return 0; } Download 13.14 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling