Advertisement
rengetsu

ProcedurProgramavimas_1.14

Feb 21st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n, z=0, q=0;
  8.     cin>>n;
  9.     for(int i=1; i<n+1; i++)
  10.     {
  11.         cout<<i<<endl;
  12.         q+=1;
  13.         z+=1;
  14.     }
  15.     cout<<"ats "<<q<<endl;
  16.    
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement