You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							30 lines
						
					
					
						
							765 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							765 B
						
					
					
				| <html><body><pre>
 | |
|     <script>
 | |
|         document.write("\ndiviser (avec reste) 31 par 5 par soustraction \n");
 | |
|         /* Pseuso code :
 | |
|             variable opD,opG,resultat entier;
 | |
|             resultat = 0;
 | |
|             opD=5;
 | |
|             opG=31;
 | |
|             reste=opG; 
 | |
| 
 | |
|             tant que reste > opD
 | |
|                 resultat ++;
 | |
|                 reste = reste - 5;
 | |
|             fin tant que
 | |
|             afficher resultat ~ " reste " ~ reste;    
 | |
|         */
 | |
|        var opD, opG, resultat, reste;
 | |
|        opD = 5;
 | |
|        opG = 31;
 | |
|        resultat=0;
 | |
|        reste = opG;
 | |
|        while(reste > opD) {
 | |
|             resultat ++;
 | |
|             reste = reste - opD;
 | |
|        }
 | |
|        document.write(resultat + " reste " + reste);
 | |
|     </script></pre>
 | |
|     </body></html>
 | |
|     
 | |
|      |