Habsburg

cetvrti

Apr 7th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int N = 0;
  6. do {
  7. cout << "Upisite N :D \n";
  8. cin >> N;
  9. }while( N < 1 || N > 26);
  10.  
  11.  
  12. for(int i = 0; i < N; ++i) {
  13. cout << char(int('Z') - i) << " ";
  14. }
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment