Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1.  
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7.  
  8.     int linha, coluna;
  9.     linha = 7;
  10.     coluna = 7;
  11.     int i;
  12.     int j;
  13.     for ( i = 0 ; i < linha ; i++ ){
  14.  
  15.         for(  j = 0; j < coluna; j++ ){
  16.  
  17.             if ( i >= j ) {
  18.  
  19.                 cout << "*" ;
  20.                
  21.             }
  22.            
  23.         }
  24.         cout << endl;
  25.     }
  26.  
  27.     return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement