Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

print the pattern 1
2 4
3 6 9
4 8 12 16
5 10 15 20 25
if n=5

Answer Posted / murthyknm

public class Pattern
{
public static void main(String args[])
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
{
System.out.print(i*j+" ");
}
System.out.println();
}
}
}

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is a 'locale'?

1132


what is the difference between 123 and 0123 in c?

1279


What are the disadvantages of a shell structure?

1430


What oops means?

1058


What does a pointer variable always consist of?

1160


Explain what is the difference between #include and #include 'file' ?

1087


What is self-referential structure in c programming?

1285


write a program to generate address labels using structures?

4629


Explain heap and queue.

1143


Write a program to swap two numbers without using third variable?

1351


What are loops c?

1105


What is malloc return c?

1081


What is the -> in c?

1070


how to find anagram without using string functions using only loops in c programming

3242


How do you declare a variable that will hold string values?

1232