Computer Science, asked by ramsmedicine, 2 months ago

Assign names of your five friends to five different variables. Write a program tp print your friends name in different lines

Answers

Answered by imshaurya17
1

Answer:

public class friends

{

public static void main()

{

char a=Arun;

char b=Bhavesh;

char c=Chaitanya;

char d=Devansh;

char e=Rohit;

System.out.println(a);

System.out.println(b);

System.out.println(c);

System.out.println(d);

System.out.println(e);

}

}

Similar questions