Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- void Alfabet();
- float PoleRombu();
- int e,f;
- char i;
- int main(){
- int wybor;
- char i;
- cout<<"Co chcesz robić? 1-PoleRombu, 2-Alfabet";
- cin>>wybor;
- switch(wybor){
- case 1:
- cout<<"Pole rombu wynosi"<<PoleRombu()<<endl;
- break;
- case 2:
- cout<<"Alfabet: "<<Alfabet<<endl;
- break;
- default:
- cout<<"Koniec";
- break;
- }
- return 0;
- }
- float PoleRombu(){
- int e,f;
- cout<<"Podaj Pierwsza przekatna ";
- cin>>e;
- cout<<"Podaj Drugą przekątną ";
- cin>>f;
- return e*f/2;
- }
- void Alfabet (){
- char i;
- cout<<"Wybierz litere od której zaczne alfabet";
- cin>>i;
- cout<<i<<endl;
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement