Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #define N 100
- main(){
- int t[N] = { 0 };
- int a, i, j;
- for( i = 0; i < 10; i ++ ){
- scanf("%d", &a ) ;
- for( j = 0; j < N ; j++ )
- if( a == j )
- t[j]++ ;
- }
- for( j = 0; j < N ; j ++)
- printf("liczbe %d podal %d razy\n", j, t[j] );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement