Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double value = -60;
- for (int i =0 ; i < 14; i++)
- {
- mt1[i].value= value;
- mt1[i].cpt=0;
- value=value+ 10;
- }
- for (int i =0 ; i < 14; i++)
- {
- if (counter <= mt1[0].value)
- mt1[0].cpt+=1;
- else if (counter >= mt1[13].value)
- mt1[14].cpt+=1;
- else if (counter >= mt1[i].value && counter <= mt1[i + 1].value )
- mt1[i].cpt +=1;
- else
- mt1[i+1].cpt +=1;
- affiche = mt1[i].value * 0.001 ;
- printf("%.2lf %d \n",affiche,mt1[i].cpt);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement