Make a program that will display the multiplication table, the out must depend upon the user input.
SAMPLE OUTPUT:
Please enter a number from 1 to 10: 2
2*1=2
2*2=4
2*3=6
2*4=8
2*5=10
2*6=12
2*7=14
2*8=16
2*9=18
2*10=20
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Make a program that will display the multiplication table, the out must depend upon the user input.
SAMPLE OUTPUT:
Please enter a number from 1 to 10: 2
2*1=2
2*2=4
2*3=6
2*4=8
2*5=10
2*6=12
2*7=14
2*8=16
2*9=18
2*10=20
It doesn't work like that - the forums are not a homework service and we don't help members cheat. Please read the getting help link in my signature, as well as the following:
http://www.javaprogrammingforums.com...e-posting.html
and what's the problem ?
So you want us to do your homework for you? That's academic dishonesty, and we aren't going to help you cheat.
Please see the link in my signature on asking questions the smart way. What have you tried? Where are you stuck?
Recommended reading: http://www.javaprogrammingforums.com...e-posting.html
Edit- It seems I was a bit late to the party. What they said.
Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
this is simple to do but whats even easier to do is to get a calculator and do it your self
Firstly do you know how to use the Scanner class to read input from the user?
You need to use:
import java.util.Scanner;
to read in a number from the user use:
Scanner scan = new Scanner (System.in); System.out.println("Enter a number between 1 and 10: "); int number = scan.nextInt();