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
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