Write a program to display name and address side by side.
Answers
Answered by
0
Answer:
PYTHON
Explanation:
Python: Display your details like name, age, address in three different lines
Answered by
1
Answer:
import java.util.*;
{
class dname
{
public static void main()
{
String name,address;
Scanner sc=new Scanner(System.in);
name=sc.next();
address=sc.next();
System.out.println(name+/t+address);
}
}
}
Explanation:
I have used Scanner class to call the variable's value initialisation.dname is the class name. name and address are the variables.
Similar questions