#include<iostream>#include<math.h>int main(){int n;float a,b,c;std::cin >> n;a=3*pow(n,2)*sqrt(5*(5+2*sqrt(5)));b=0.25*pow(n,3)*(15+7*sqrt(5));c=n*0.05*sqrt(10*(25+11*sqrt(5)));std::cout << "Pole: " << a <<"\nObjetosc: " << b << "\nPromien kuli: " << c << "\n";
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
#include<iostream>
#include<math.h>
int main()
{
int n;
float a,b,c;
std::cin >> n;
a=3*pow(n,2)*sqrt(5*(5+2*sqrt(5)));
b=0.25*pow(n,3)*(15+7*sqrt(5));
c=n*0.05*sqrt(10*(25+11*sqrt(5)));
std::cout << "Pole: " << a <<"\nObjetosc: " << b << "\nPromien kuli: " << c << "\n";