Kod:
#include <stdio.h>
main()
{int x,i;
printf("Lutfen bi sayi giriniz:\n");
scanf("%d",&x);
if(1==x/100000)
i++;
if(1==x/10000)
i++;
if(1==x/1000)
i++;
if(1==x/100)
i++;
if(1==x/10)
i++;
if(1==x/1)
i++;
printf("Girdiğiniz sayi icinde %d tane 1 bulunmaktadir\n",i);
}

