This repository has been archived on 2019-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
s6-pa-tp/TP6/boucle.c

21 lines
319 B
C
Raw Permalink Normal View History

2017-03-27 13:59:08 +00:00
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int i,j,k,l,m,n;
int compteur = 0;
for(i=0; i<20;i++)
for(j=10; j>0;j--)
for(k=0; k<i;k++)
for(l=10; l>j; l--)
for(m=10; m>k; m--) // La comparaison a été inversée
for(n=10; n>0; n--)
compteur++;
return 0;
}