how to write the fallowing code in java?
1
4 9
16 25 36
49 64 81 100



how to write the fallowing code in java? 1 4 9 16 25 36 49 64 81 100..

Answer / heena

each number multiply by same like below:
1 = 1*1
4 = 2*2
9 = 3*3
16 = 4*4
create series using loop

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Programming Languages AllOther Interview Questions

what do you meant by Platform-Independent in Java?

6 Answers   Persistent,


smal talk is pure object oriented or not?

0 Answers  


why we use abstract word in abstract window toolkit in java language.

0 Answers   Infosys,


what is the difference between read the data from table and infotype

0 Answers  


I m new to the dbms. Recently i came across words clustered indexes & nonclustered indexes but i dont know what is this all about & whats the difference between them.. So please help me!!!!!!!!

0 Answers  






I m Abdullah Ansari compleated MCA from Jamia Hamdard,i have appeared the test of IBM on 2 august at oxford college of engineering Bangalore.waiting for hr round.. This is the first round for IBM.02/08/08 Paper consists of 4 sections 15 questions from matrices(time very less but no negative marking). 25 questions from series completion section (this section is very easy but negative marking) 15 questions from aptitude(little bit tough time limit 15 minute negative marking) 4th section is from computer science (c,c++,operating system,digital electronics ,basic question..) result came at 3 o'clock.i was selected... In interview they asked questions like 1 they asked about final yr project.. 2 what are dynamic and static memory location? 3 linked list and array difference between them. 4 what is function ? what is difference betwen function and inline function? 5 about structure 6 about binary tree, traversal, call by value. 7 storage class and many more basic questions..

0 Answers   IBM,


how can i apply validation without using errorprovider in C# windows application

1 Answers  


please any one pass file aid,xpeditor and endeavor tools

0 Answers  


could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?

0 Answers  


Programs in JAVA to get the remainder and quotient of given two numbers without using % and / operators?

2 Answers  


what is throws keyword

1 Answers   IBM,


1.what is the vesition managment.

0 Answers   IBM,


Categories