Guest User

Kalkulator

a guest
May 2nd, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include "iostream"
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.    double lb1,lb2;
  9.    
  10.    cout<<"Podaj liczbe: ";
  11.    cin>>lb1;
  12.    cout<<"Podaj druga liczbe: ";
  13.    cin>>lb2;
  14.    cout<<"/n";
  15.  
  16.    cout<<"Ich suma wynosi: "<<lb1+lb2<<endl;
  17.    cout<<"Ich roznica wynosi: "<<lb1-lb2<<endl;
  18.    cout<<"Ich iloraz wynosi: "<<lb1*lb2<<endl;
  19.    cout<<"Ich iloczyn wynosi: "<<lb1/lb2<<endl;
  20.    cin.get();
  21.    cin.get();
  22.    return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment