Facebook
From Speedy Pudu, 4 Years ago, written in Plain Text.
This paste is a reply to Untitled from Toxic Stork - go back
Embed
Viewing differences between Untitled and Re: Untitled
#include 
#include 
int trojkat(int a, int h) 
{
        int d;
        d=(a*h)/2;
        return d;
}
int kwadrat(int a)
{
int d;        
d=a*a;
return d;
}
int prostokat(int a, int b){
int d;
d=a*b;
return d;        
}
int rownoleglobok(int a, int h)
{
int d;
d=a*h;
return d;                
}
int trapez(int a, int b,int h){

int d;
d=a+b/2*h;
return d;
}
using namespace std;
int main(){
int wybor,b ,a,h;
cout<<"1 trojkat,2 kwadrat,3 prostokat,4 rownoleglobok,5 trapez"< cin>>wybor;
switch(wybor)

{
case 1:
        cout<<"podaj a:";
        cin>>a;
        cout<<"podaj h:";
        cin>>h;
  cout<<"pole trojkatu="<     break;
   
case 2:
 cout<<"podaj a:";
 cin>>a;
 cout<<"pole kwadratu="<     break;
   
  
case 3:
  cout<<"podaj a";
  cin>>a;
  cout<<"podaj b";
  cin>>b;
  cout<<"pole prostokatu"<     break;
    
    
case 4:
        cout<<"podaj a";
        cin>>a;
        cout<<"podaj h";
        cin>>h;
        cout<<"pole rownolegloboku="<   
    break;
case 5:
        cout<<"podaj a";
        cin>>a;
        cout<<"podaj b";
        cin>>b;
        cout<<"podaj h";
        cin>>h;
        cout<<"pole trapezu="<     
  break;
   

}    

return 0;
}

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled Big Treeshrew text 4 Years ago.