Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include<iostream>
- #include<time.h>
- using namespace std;
- int main()
- {
- int i;
- int f;
- int s;
- i = rand() % 90 + 10;
- int desetice;
- int jedinice;
- desetice = i / 10;
- jedinice = i % 10;
- cout << i << endl;
- cout << desetice << " " << jedinice << endl;
- f = rand() % 90 + 10;
- int desetice1;
- int jedinice1;
- desetice1 = i / 10;
- jedinice1 = i % 10;
- cout << f << endl;
- cout << desetice1 << " " << jedinice1 << endl;
- s = jedinice + jedinice1;
- cout << s << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement