Answer to Question #256825 in C++ for Urooj

Question #256825

Using a while loop, and appropriate increment/decrement operators.Write a while loop that prints to console all values of the 9 times table from 108 to 9.


1
Expert's answer
2021-10-27T00:48:11-0400
public class Main
{
	public static void main(String[] args) {
	    int n=9;
	    int i=108;
	    while(i>=9){
	        System.out.println(n+" * "+i+" = "+(n*i));
	        i--;
	    }
	}
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS