Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- float broj1, broj2;
- float mnozenje = 0, sabiranje = 0, oduzimanje = 0, dijeljenje = 0;
- cout << "Unesite 2 varijable: " << endl;
- cout << "Broj 1: ";
- cin >> broj1;
- cout << "Broj 2: ";
- cin >> broj2;
- mnozenje = broj1*broj2;
- dijeljenje = broj1 / broj2;
- sabiranje = broj1 + broj2;
- oduzimanje = broj1 - broj2;
- cout << "Sabiranje: " << sabiranje << endl;
- cout << "Oduzimanej: " << oduzimanje << endl;
- cout << "Mnozenje: " << mnozenje << endl;
- cout << "Dijeljenje: " << dijeljenje << endl;
- system("pause>0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement