All pastes #2052954 Raw Edit

Mine

public c v1 · immutable
#2052954 ·published 2011-05-02 17:54 UTC
rendered paste body
#include <stdio.h>int main(){    int sayilar[10]={5,6,2,1,4,2,5,5,5,2};    int i,j;    int matris[5][2];    int ar[5];    int temp=0;    int tempX;    int k=0;    for(i=0; i<10; i++)    {        for(j=i+1; j<10; j++)        {            if(sayilar[j]==sayilar[i])            {                if(temp==0)                {                    matris[k][0] = sayilar[j];                    matris[k][1] = 1;                    temp=1;                } else                {                    matris[k][1]++;                }            }        }        if(temp!=0)        k++;        temp=0;    }    printf("%d %d",matris[0][0],matris[0][1]+1);}