Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab3_62

Snippet info

Language

Cpp

Visibility

public

Author

matho.camara

Created

2018-10-24T11:47:31Z

Updated

2018-10-24T12:19:37Z

#include <iostream>
using namespace std;

int main() {
    int R,a; //circle and square
    cout << "Input (Radius) R, and A (square's side) values :"<<endl;
    cin>>R>>a;
    
    int sA=a*a*a*a;
    int sR=3.14*(R*R);
    
    if(sR>sA)
    cout<<"Circle's surface is bigger :"<<sR<<endl;
    else
     cout<<"Square's surface is bigger :"<<sA<<endl;
    return 0;
}
INFO