WAP to enter a alphabet and if that alphabet matches first character of your name display your name.
Answers
Answered by
0
import java. util. Scanner;
public class Abc{
public static void main(String args[]){
Scanner scn = new Scanner(System.in);
System.out.print("Enter a alphabet : ");
char c = scn.next().charAt(0);
if(c=='k'||c=='K')
System.out.println("Kareetika");
scn.close();
}
}
Note : I'm using K and Kreetika because it's your username.
.
.
.
.
HOPE THIS HELPS YOU
.
.
.
.
PLEASE MARK AS BRAINLIEST AND FOLLOW ME TOO
Similar questions