Java ( Sayıyı Yazıya Çeviren Program )
import cs1.Keyboard;
public class kelimecevirme
{public static void main(String args[])
{int cat,cat1;
System.out.println("sayýyý gir:");
int sayý=Keyboard.readInt();
cat=sayý/10;
cat1=sayý%10;
switch(cat)
{
case 10:
System.out.print("yüz ");
break;
case 9:
System.out.print("doksan ");
break;
case 8:
System.out.print("seksen ");
break;
case 7:
System.out.print("yetmiþ ");
break;
case 6:
System.out.print("altmýþ ");
break;
case 5:
System.out.print("elli ");
break;
case 4:
System.out.print("kýrk ");
break;
case 3:
System.out.print("otuz ");
break;
case 2:
System.out.print("yirmi ");
break;
case 1:
System.out.print("on ");
break;
default:
}
switch (cat1)
{
case 9:
System.out.print("dokuz");
break;
case 8:
System.out.print("sekiz");
break;
case 7:
System.out.print("yedi");
break;
case 6:
System.out.print("altý");
break;
case 5:
System.out.print("beþ");
break;
case 4:
System.out.print("dört");
break;
case 3:
System.out.print("üç");
break;
case 2:
System.out.print("iki");
break;
case 1:
System.out.print("bir");
break;
default:
}
}}