Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct impartire{
- int cat;
- int rest;
- }rezultat;
- int main()
- {
- int x;
- cout << "x = "; cin >> x;
- rezultat.cat = 2018 / x;
- rezultat.rest = 2018 % x;
- cout << "Cat: " << rezultat.cat;
- cout << endl << "Rest: " << rezultat.rest;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment