Comment on Tutorial - for loop in java By Abinaya



Comment Added by : Hannah Jambalos

Comment Added at : 2014-09-03 12:07:34

Comment on Tutorial : for loop in java By Abinaya
Write a times table programme. The programme should ask a user to input a number. This number is then used as the times table. So if the user enters 10, the 10 times table should be displayed. Your Output window should look something like this, when your programme is run.

Output of a Java Times Tables programme is run:
Which times table do you want?
10
1 times 10 = 10
2 times 10 = 20
3 times 10 = 30
4 times 10 = 40
5 times 10 = 50
6 times 10 = 60
7 times 10 = 70
8 times 10 = 80
9 times 10 = 90
10 times 10 = 10


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hey this code is very helpful......can you please
View Tutorial          By: Preetam Purbia at 2010-03-01 04:25:47

2. I have download that 5 files .But how to run this
View Tutorial          By: Unnati at 2011-07-07 06:07:26

3. Very useful n understandable. More understandable
View Tutorial          By: Kiran at 2015-08-27 06:13:00

4. Hi lolz,
In order for this code to work, yo

View Tutorial          By: Vijay at 2008-12-10 19:22:04

5. hai,
pls help me. i need a full java code w

View Tutorial          By: Shanalal Kasim at 2009-10-19 08:31:03

6. I am getting the following exception
Error

View Tutorial          By: Balraj Selvakumar at 2008-10-14 03:12:20

7. Hi, a have a problem using bsearch. i need return
View Tutorial          By: Daniel at 2009-03-30 04:11:13

8. i am trying to run the above example in eclipse bu
View Tutorial          By: Prathyusha at 2015-03-10 11:01:06

9. thank for the sharing.
View Tutorial          By: likelove at 2014-11-22 12:41:58

10. DON'T USE GETS!!!!!!!!!!!!!!! IT'S DANGEROUS!
View Tutorial          By: Caterpillar at 2012-04-23 13:22:42