Advertisement
mailnesia

Untitled

Apr 28th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. #define N 100
  3.  
  4. main(){
  5.  int t[N] = { 0 };
  6.  int a, i, j;
  7.  for( i = 0; i < 10; i ++ ){
  8.  scanf("%d", &a ) ;
  9.  for( j = 0; j < N ; j++ )
  10.  if( a == j )
  11.  t[j]++ ;
  12.  }
  13.  for( j = 0; j < N ; j ++)
  14.  printf("liczbe %d podal %d razy\n", j, t[j] );
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement