form java blog spot.com
Wednesday, 25 September 2013
3.write a program to print table of a number
class Table
{
public static void main(String args[])
{
int n=5,i;
for(i=1; i<=10; i++)
{
System.out.println(n+"*"+i+"="+(n*i));
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment