15 lines
		
	
	
		
			353 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			353 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| liste nombres = [3, 3, 6, 7, 8];
 | |
| booléen monotone = vrai;
 | |
| 
 | |
| pour chaque entier position dans [1:taille nombres - 1] faire {
 | |
|     si nombres[position] > nombres[position + 1] alors {
 | |
|         monotone = faux;
 | |
|     }
 | |
| }
 | |
| 
 | |
| si monotone alors {
 | |
|     afficher "La liste", nombres, "est monotone";
 | |
| } sinon {
 | |
|     afficher "La liste", nombres, "n'est pas monotone";
 | |
| }
 |