Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package caseyapisiornegi;
- // Author: Mehmet Gündoğdu - teknogezgin.com
- import java.util.Scanner;
- public class caseliornek {
- public static void main(String[] args) {
- Scanner alinacakdeger = new Scanner(System.in);
- int choice;
- System.out.println("İngilizce yazılışını görmek istediğiniz sayıyı rakamla yazınız. (1-10 arası desteklenir.)");
- choice = alinacakdeger.nextInt();
- switch(choice){
- case 1:
- System.out.println("One");
- break;
- case 2:
- System.out.println("Two");
- break;
- case 3:
- System.out.println("Three");
- break;
- case 4:
- System.out.println("Four");
- break;
- case 5:
- System.out.println("Five");
- break;
- case 6:
- System.out.println("Six");
- break;
- case 7:
- System.out.println("Seven");
- break;
- case 8:
- System.out.println("Eight");
- break;
- case 9:
- System.out.println("Nine");
- break;
- case 10:
- System.out.println("Ten");
- break;
- default:
- System.out.println("Lütfen 1 ile 10 arasında bir değer giriniz.");
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement