- Create a new for loop that will print numbers from 0 to 9.
- Create a new for loop that goes through numbers from 0 to 100.
- Don’t print the numbers.
- If the number is between 60 to 70, print “Your grade is D”. You have to use AND (&&).
- If the number is between 70 to 80, print “Your grade is C”. You have to use AND (&&).
- If the number is between 80 to 90, print “Your grade is B”. You have to use AND (&&).
- If the number is between 90 to 99, print “Your grade is A”. You have to use AND (&&)
- If the number is equal to 100, print “Your grade is A+, good job”.
- Do the following
- Get input from Shell: “How many times you want to loop: “
- Convert user input to an Integer.
- Create a for loop and loop according to user input.
- Inside the for loop, do the following. Print “Hello AYCLOGIC”.
- Example
How many times you want to loop: 4
Hello AYCLOGIC
Hello AYCLOGIC
Hello AYCLOGIC
Hello AYCLOGIC