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
Are arrays classes in java?
When arithmeticexception is thrown?
What is compareto?
What are the string methods in java?
What access modifiers can be used for methods?
What do you understand by a Static Variable?
What is JFC?
Is binary a low level language?
what r advatages of websphere? & how to deploy?
What is the multi-catch block in java?
Explain about collection interface in java?
Does .length start 0 java?
How to access arraylist elements in java?
How many types of parsers are there?
How does split work in java?