Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by afkakfja ( 14 years ago )
#include <iostream>
    #include <conio.h>
    int main()
    {
     int liczba1,liczba2,rodzaj;
     int wynik;
     std::cout<<"podaj dwie liczby\n";
     std::cin>>liczba1 ;
     std::cin>>liczba2 ;
     std::cout<<"Nastepnie wybierz jaki rodzaj rownania chcesz uzyc 1-suma 2-roznica 3-iloczyn 4-iloraz 5-kwadrat\n";
     std::cin>>rodzaj;
      if (rodzaj == 1)
{
     wynik = liczba1 + liczba2 ;
     std::cout<<"Twoj wynik to: "<< wynik <<"\n";
}    
      if (rodzaj == 2)
{
       wynik = liczba1 - liczba2;
      std::cout<<"T wynik to: "<< wynik<<"\n" ;
}
     
     
     
       getch(); 
       
      }

 

Revise this Paste

Your Name: Code Language: