Advertisement
Josif_tepe

Untitled

Apr 5th, 2024
906
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <vector>
  4. using namespace std;
  5.  
  6.  
  7. int main()
  8. {
  9.     int n;
  10.     cin >> n;
  11.    
  12.     vector<int> v;
  13.     for(int i = 0; i < n; i++) {
  14.         int x;
  15.         cin >> x;
  16.         v.push_back(x);
  17.     }
  18.    
  19.     // ova e nacinot na koj ja vadime sekoja cifra posebno za nekoj broj
  20.     int b = 123;
  21.     while(b > 0) {
  22.         int cifra = b % 10;
  23.         b /= 10;
  24.     }
  25.     return 0;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement