Advertisement
Cy_Dreamer

Untitled

Nov 28th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. {
  2. for(j=0;j<M;j++)
  3. {
  4. counter1=0;
  5. counter2=0;
  6. for (i=0;i<N;i++)
  7. {
  8. if(B[i][j]<5)
  9. counter1++;
  10. else
  11. counter2++;
  12. }
  13. printf("Pososto epituxias sto mathima %d einai %f %%\n",j+1,((float)(counter2*100)/N));
  14. printf("Pososto apotuxias sto mathima %d einai %f %%\n",j+1,((float)(counter1*100)/N));
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement