Created
June 10, 2012 15:10
-
-
Save pasali/2906134 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int bas_1; | |
int bas_2; | |
int sayi; | |
printf("sayiyi giriniz:"); | |
scanf("%d",&sayi); | |
bas_1 = sayi / 10; | |
switch(bas_1) | |
{ | |
case 1: | |
printf("on"); | |
break; | |
case 2: | |
printf("yirmi"); | |
break; | |
case 3: | |
printf("otuz"); | |
break; | |
case 4: | |
printf("kirk"); | |
break; | |
case 5: | |
printf("elli"); | |
break; | |
case 6: | |
printf("atmis"); | |
break; | |
case 7: | |
printf("yetmis"); | |
break; | |
case 8: | |
printf("seksen"); | |
break; | |
case 9: | |
printf("doksan"); | |
break; | |
} | |
bas_2 = (sayi) % 10; | |
switch(bas_2) | |
{ | |
case 1: | |
printf("bir"); | |
break; | |
case 2: | |
printf("iki"); | |
break; | |
case 3: | |
printf("üç"); | |
break; | |
case 4: | |
printf("dört"); | |
break; | |
case 5: | |
printf("beş"); | |
break; | |
case 6: | |
printf("altı"); | |
break; | |
case 7: | |
printf("yedi"); | |
break; | |
case 8: | |
printf("sekiz"); | |
break; | |
case 9: | |
printf("dokuz"); | |
break; | |
} | |
printf("\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment