Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main()
- {
- float obsah,obvod,strana;
- cout << "Zadajte obsah stvorca: ";
- cin >> obsah;
- strana = sqrt(obsah);
- obvod = obsah*4;
- cout << "Obvod stvorca je " << obvod << endl ;
- cout << "Strana stvorca je " << strana;
- char reakcia;
- cin >> reakcia;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement