filmov
tv
How to make Simple Multiplication Table & Sum of All Product using For, While, & Do Loop in Java

Показать описание
Hi guys! In this video I will show you how to solve one of our Java Looping Exercises using For, While, and Do While Loop.
Write a java program that prompts the user to input a positive integer. It should then print the multiplication table of that number from 1-10 and calculate the sum of all product.
(Sample Output:)
Input positive integer: 5
Multiplication Table of 5
5x1=5
5x2=10
5x3=15
5x4=20
5x5=25
5x6=30
5x7=35
5x8=40
5x9=45
5x10=50
The sum of all product is 275
Check this :
using For Loop 04:19
using While Loop 11:29
using Do While Loop 15:11
(Note: I used Eclipse IDE for Java Developers - 2019-12 and also I'm using Scanner class to accept user input)
If you like this video DON'T FORGET TO LIKE AND SUBSCRIBE TO MY YOUTUBE CHANNEL to see more programming videos!!!
#java
#javaprogramming
#javaprogrammingwitheclipse
#simplemultiplicationtable
#simplemultiplicationtablethensumofproduct
#dmtenio
#tenoitv
You can also check this video in solving other Java Looping Exercises:
How to Loop Input Range then Get the Sum of All Numbers using For, While, and Do While Loop in Java
How to make simple Multiplication Table & Sum of All Product using For, While, & Do Loop in Java
How to Loop Input Integer to make Multiplication Table then Calculate the Sum of All Product using For, While, and Do While Loop
Write a java program that prompts the user to input a positive integer. It should then print the multiplication table of that number from 1-10 and calculate the sum of all product.
(Sample Output:)
Input positive integer: 5
Multiplication Table of 5
5x1=5
5x2=10
5x3=15
5x4=20
5x5=25
5x6=30
5x7=35
5x8=40
5x9=45
5x10=50
The sum of all product is 275
Check this :
using For Loop 04:19
using While Loop 11:29
using Do While Loop 15:11
(Note: I used Eclipse IDE for Java Developers - 2019-12 and also I'm using Scanner class to accept user input)
If you like this video DON'T FORGET TO LIKE AND SUBSCRIBE TO MY YOUTUBE CHANNEL to see more programming videos!!!
#java
#javaprogramming
#javaprogrammingwitheclipse
#simplemultiplicationtable
#simplemultiplicationtablethensumofproduct
#dmtenio
#tenoitv
You can also check this video in solving other Java Looping Exercises:
How to Loop Input Range then Get the Sum of All Numbers using For, While, and Do While Loop in Java
How to make simple Multiplication Table & Sum of All Product using For, While, & Do Loop in Java
How to Loop Input Integer to make Multiplication Table then Calculate the Sum of All Product using For, While, and Do While Loop