Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- // korisnikot vnesuva broj n, i go pecatime prviot broj koj e deliv so 10
- int n;
- cin >> n;
- int x = n + 10;
- while(n <= x) {
- if(n % 10 == 0) {
- cout << n << endl;
- break;
- }
- n += 1;
- }
- cout << "zdravo" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment