Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- for(j=0;j<M;j++)
- {
- counter1=0;
- counter2=0;
- for (i=0;i<N;i++)
- {
- if(B[i][j]<5)
- counter1++;
- else
- counter2++;
- }
- printf("Pososto epituxias sto mathima %d einai %f %%\n",j+1,((float)(counter2*100)/N));
- printf("Pososto apotuxias sto mathima %d einai %f %%\n",j+1,((float)(counter1*100)/N));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement