daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package FebruaryKOTLIN
  2.  
  3. import java.util.*
  4.  
  5. fun main (args: Array<String>){
  6.  
  7.  
  8.    // var ch: Char = ' '
  9.  
  10.  
  11.       var sc = Scanner(System.`in`)
  12.       println("Enter your Data : ")
  13.       var ch = sc.next()[0]
  14.       println("your data is $ch")
  15.  
  16.  
  17.     if (ch=='a' || ch=='e' || ch=='i' || ch=='o' ||  ch=='u' ||
  18.             ch=='A' || ch=='E' || ch=='I' || ch=='O' ||  ch=='U'){
  19.  
  20.         println("Vowel: "+ch)
  21.     }
  22.  
  23.     else if((ch>='a') && (ch<='z') ||  (ch>='A') && (ch<='Z')){
  24.  
  25.             println("Consonant : "+ch)
  26.     }
  27.  
  28.     else if((ch>='0') && (ch<='9'))
  29.     {
  30.         println("Digit number")
  31.  
  32.     }else if(ch== ' '){
  33.  
  34.         println("Space now in a select ")
  35.     }
  36.  
  37.     else{
  38.  
  39.         println("Symbol of anythings : "+ch)
  40.     }
  41.  
  42.  
  43. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top