Write a program that asks two people for their names; stores the names in variables called name1 and name2; says hello to both of them.
Answers
Answered by
7
Answer:
name1=input("enter your name")
name2=("enter the other name")
print("hello",name1)
print ("hello",name2)
Explanation:
you can modify the statement in double qoutes as you wish
plz mark as brainliest
Answered by
1
Answer:
import java.io.*;
class a
{
static void f( ){
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader bf=new BufferedReader(is);
System.out.println("Please enter ur name");
String c=bf.readLine( );
int name1=Integer.parseInt(c);
System.out.println("Please enter ur name");
String d=bf.readLine( );
int name2=Integer.parseInt(d);
System.out.println(+name1+"Hello");
System.out.println(+name2+"Hello");
}}
Please mark it brainliest answer as it is verified answer by our teacher also
Similar questions