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

can we retrieve only integer/String type columns from a table,if yes how?

0 Answers  


we create a pf with 3 fields.2 is defined as keyfields.we lock it with alcobj command.how we find out whether the file is locked or not?is it dspfd??/

0 Answers   CTS,


Data Structure: Show that if k is the smallest integer greater than or equal to n+ (log2n)-2, k comparisons are necessary and sufficient to find the largest and second largest elements of a set of n distinct elements. (k comparisons are required to find what you are looking for, but no more than that are needed)

0 Answers   Student,


code for connection from windows forms to sql server

0 Answers   ME,


how to convert infix expression to prefix expression?

0 Answers   nvidia,






Hi all... I had completed MSC(Computer) and had join the construction company based on sap.they want me to work on abap.but software company is totally different from construction company and they want me 2 grasp it as fast i can.i am finding it difficult.what should i do??????

0 Answers  


how we can call xml file in java file using Android platform?

2 Answers   TCS,


how to get second highest salary from a employee table and how get a 5th highest salary from a employee table by using proc sql?

0 Answers   ABC,


Fortran cannot have value by reference True or False?

2 Answers   Geometric Software,


What is nocopy in plsql?

1 Answers   IBA Health,


What is a PID? How is it useful when troubleshooting a system?

3 Answers  


Find out the roles which gives access to all tables in SAP? Thanks in advance.

0 Answers  


Categories