Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.79 KB | None | 0 0
  1.   int x1 = 0, y1 = 10;                                                                                                                    
  2.   while (j < (largeur*longueur)) {                                                                                                        
  3.     if (x1 < largeur) {                                                                                                                    
  4.       i = j;                                                                                                                              
  5.       if ((y1+x1) == coord[i]) {                                                                                                          
  6.         cout << '*';                                                                                                                      
  7.       } else { cout << ' '; }                                                                                                              
  8.       ++x1;                                                                                                                                
  9.     } else {                                                                                                                              
  10.         x1 =0;                                                                                                                            
  11.         y1 += 10;                                                                                                                          
  12.     }                                                                                                                                      
  13.     ++j;                                                                                                                                  
  14.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement