Skip to content

Instantly share code, notes, and snippets.

@austa
Created June 3, 2013 12:29
Show Gist options
  • Save austa/5697793 to your computer and use it in GitHub Desktop.
Save austa/5697793 to your computer and use it in GitHub Desktop.
#include<stdio.h>
int main (void)
{
int sayilar[10] = {0,1,2,3,4,5,6,7,8,9};
char string[] = "";
int i = 0, j = 0;
printf("Kelime giriniz:\n");
scanf("%s", string);
for(i = 0; string[i] != '\0'; i++)
{
for (j = 0; j<10;j++)
{
if(string[i] == sayilar[j])
{
printf("%d", string[i]);
}
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment