Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.  
  2. //B. N рядов из собачек
  3.  
  4. #include    <math.h>
  5. #include   <iomanip>
  6. #include  <iostream>
  7. using namespace std;
  8.  
  9. int main()
  10. {  
  11.    
  12.     int i = 0,n = 0,a[20] = {0};
  13.                
  14.     cin >> n ;
  15.    
  16.     while(n--)
  17.     {
  18.         i++;
  19.        
  20.         cin >> a[i];
  21.        
  22.         while(a[i]--)
  23.         {
  24.            
  25.             cout << "@";   
  26.         }  
  27.        
  28.         cout << "" << endl;
  29.     }      
  30.    
  31.    
  32.    
  33. return 0;  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement