TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Calculate Multiplication Table using Java
Senthilvelan Sambamoorthy
Aug 13
2016
Code
678
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
ssvmulti.rar
// Multiplication Table
import
java.io.*;
class
ssvmulti
{
public
static
void
main(String args[])
throws
IOException
{
System.out.print(
"\n\tEnter number :"
);
BufferedReader ip =
new
BufferedReader(
new
InputStreamReader(System.in));
int
num= Integer.parseInt(ip.readLine());
System.out.println(
"\n\n\n\t\tMULTIPLICATION TABLE OF 5"
);
System.out.print(
"\n\n\n"
);
for
(
int
i =
1
;i<=
20
;i++)
{
int
sum = i * num;
if
(i<
10
)
System.out.println(
"\t\t\t "
+ i +
" * "
+ num +
" = "
+ sum);
else
System.out.println(
"\t\t\t"
+ i +
" * "
+ num +
" = "
+ sum);
}
// end of for
}
// end of main
}
// end of class
Java