Question: Questions 1 . Variable Declaration: Write a Java program that declares an integer variable age and assigns it the value 2 0 . Print the
Questions
Variable Declaration:
Write a Java program that declares an integer variable age and assigns it the value Print the value of age.
Data Types:
Create a Java program that declares a float variable temperature and assigns it the value Print the value of temperature.
String Manipulation:
Write a Java program that declares a string variable name and assigns it your name. Print a greeting message like "Hello, name
IfElse Statement:
Write a program that declares an integer variable score and assigns it a value of Use an ifelse statement to check if the score is greater than or equal to If it is print "Pass", otherwise print "Fail".
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
