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

THERE ARE 4 SOURCE FILES WHICH CONTAINS SAME METADATA CREATE A TARGET THAT SHOULD DISPLAY THE FILE NAME ALONG WITH THE RECORD PLEASE SEND THE ANSWERFOR THIS QUESTION WITH MAPPING

0 Answers   Wipro,


Question:Why is mapping required? Computer 'Paging' & 'Segmentation'. Question:Give the disadvantages of Havander's Strategies. Question: What do you mean by Belady's Anomaly. - Describe with example. Question: Discuss the various function of OS. Question: Give a brief discussion on schedulers & Dispatchers with respect to process management.

0 Answers  


what is the difference between an application and service??? i mean service which runs as in services.msc.

2 Answers  


Any real time example of O2C process from taking order till creating invoice.

0 Answers  


Write a program to find whether a given number is prime or not.

0 Answers   Syntel, Visa,






Explain the types of operations? Draw the figure for shift and rotate operations?

0 Answers  


How can successful and thorough systems planning, analysis, and design be ruined by poor systems construction and implementation? How can poor systems analysis or design ruin a smooth construction and implementation? For both questions, list some consequences

1 Answers  


What's the difference b/w Table & Templete in Smartform?

0 Answers   Accenture,


Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can?t pass the value k to any function also.

0 Answers   Amazon,


What is the best action a system can take when deadlock is detected

2 Answers  


what is the diffrence between occur 0 and occur 10 in ABAP.

0 Answers  


I want to insert date in the form of yyyy-mm-dd... if any changes happen while inserting date format want to show error meg...any one can solve this..??

0 Answers  


Categories