write a program to join three strings entered by the user
Answers
Answered by
0
Answer:
text1=str(input("enter text"))
text2=str(input("enter text"))
text3=str(input("enter text"))
print(text1+text2+text3)
Answered by
0
Answer:
public class Brainly
{
public static void main(String[] args) {
java.util.Scanner scanner = new java.util.Scanner(System.in);
String[] str = new String[3];
for(int i = 0; i < str.length; i++)
{
System.out.println("Enter string " + (i + 1));
String s = scanner.nextLine();
str[i] = s;
}
for (String x : str)
{
System.out.print(x + " ");
}
}
}
Explanation:
Similar questions