Computer Science, asked by jojo7422, 1 month ago


1. WAP to store "FUN", "WITH" and "COLOURS" in three different
variables and display the string in the following format: (5)
FUN
WITH
COLOURS
FUN WITH COLOURS​

Answers

Answered by priya7668
0

Answer:

I'm writing only main program with the help of java language...

System.out.print("to store the given string");

String str = "FUN";

String str2 = "WITH";

String str3 = " COLOURS";

String str4 = new String ();

str4= str + str2 + str3 ;

// to print

System.out.print/n("+str ");

System.out.print/n("+str2 ");

System.out.print/n("+str3 ");

System.out.print/n("+str4");

HOPE IT WILL HELP YOU!

Similar questions