b. Write a java program to print Welcome to [city name] On Screen and take
name of city through Scanner Class.
Answers
Answered by
2
Answer:
class welcome{
public static void main(String args []){
System.out.println("Hi welcome to Jaipur");
}
}
Explanation:System.out.println(""); takes the tex in bracket whic is in "" an outputs it in the screen. if you had a variable like
int x = 10;
you would print 10 somthing like this
System.out.println(x);
if you would've done it in "" then it will print the letter x
Similar questions