Advertisement
idsystems

CPP_Practica57_Cuadrado

Mar 13th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. // Program: cuadrado.cc
  2. // Author:  Yoan Pinzon
  3. // Date:    Agosto 30, 2006
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main(){
  10.    int n;
  11.  
  12.    cout << "Entre n: "; cin >> n;
  13.    for(int i=0; i<n; i++)
  14.       for(int j=0; j<n; j++)
  15.          cout << "* " << (j==n-1?"\n":"");
  16.    
  17.    return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement