write a python program which accepts the user's first and last name and print them in reverse order with a space between them
Answers
Answered by
1
Answer:import java.util.Scanner;
public class Student {
public static void main(String[] args) {
Scanner userInput = new Scanner(System.in);
String firstname;
System.out.println("Enter firstname :");
firstname = userInput.next();
String lastname;
System.out.println("Enter lastname ");
lastname = userInput.next();
String name;
name= firstname + " " + lastname;
System.out.println (name);
}
}
Explanation:
Answered by
2
Explanation:
please mark me as brainlist please please please please
Similar questions