#include <iostream>using namespace std; int main() {int a,pole,obwod; cout<<"Podaj a= "; cin>>a; if(a>0){ pole=a*a; obwod=4*a; cout<<" Pole wynosi="<<pole<<endl; cout<<"Obwod wynosi="<<obwod<<endl; } else { cout<<"Bledna wartosc"; } return 0;}
Standard input is empty
Podaj a= Pole wynosi=482065936 Obwod wynosi=87824
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!