Q-3- Write a java program to display your initials on the screen in block letters as shown. For example the name Kanha Nayak.
INPUT :
public class NCM {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(" K K NN N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" KK N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N NN ");
}
}
INPUT :
public class NCM {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println(" K K NN N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" KK N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N N N ");
System.out.println(" K K N NN ");
}
}
OUTPUT :
K K NN N
K K N N N
K K N N N
K K N N N
KK N N N
K K N N N
K K N N N
K K N N N
K K N NN
No comments:
Post a Comment