Program napisany w języku C++:
#include <iostream>
#include <math.h>
float r;
using namespace std;
int main(){
cout << "Podaj promien kola: ";
cin >> r;
cout << "Pole kola wynosi ok. " << round(3.14*r*r*1000)/1000 << endl;
cout << "Obwod kola wynosi ok. " << round(3.14*r*2*1000)/1000 << endl;
return 0;
}
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Program napisany w języku C++:
#include <iostream>
#include <math.h>
float r;
using namespace std;
int main(){
cout << "Podaj promien kola: ";
cin >> r;
cout << "Pole kola wynosi ok. " << round(3.14*r*r*1000)/1000 << endl;
cout << "Obwod kola wynosi ok. " << round(3.14*r*2*1000)/1000 << endl;
return 0;
}