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...

Tell me the programme for this


@
1 2
@ @ @
1 2 3 4

Answer Posted / varun

public class HelloWorld{

public static void main(String []args){
int k=1;
for(int i=0;i<4;i++)
{
for(int j=0;j<=i;j++)
{
if(i%2==0)
System.out.print("@");
else
System.out.print(++k);
}
System.out.println();
k=0;
}
}
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain jvm, jre, and jdk?

959


Is java owned by oracle?

958


Is 0 true or false?

946


What is a substring of a string?

1087


What is an immutable class? How to create an immutable class?

1007


List types of storage classes in java?

1070


What value is a variable of the string type automatically initialized?

1053


What is an abstract class and what is it’s purpose?

910


Explain what is Marker interface?

1038


Explain restrictions on using enum?

1015


Write a program to show whether a graph is a tree or not using adjacency matrix.

1036


What is double checked locking in singleton?

1005


Explain the difference between intermediate and terminal operations in java8?

1047


What is the synonym of string?

1040


Which arithmetic operations can result in the throwing of an arithmeticexception?

972