Write a program to calculate the following
i want a Java program for this condition
1+4+9+16+….+100
Like this (1^2+2^2)
Hint use function pow(a,b)
Answer Posted / sumitpalsingh
public class Power {
public static void main(String[] args) {
int b=2;
for(int i=1;i<=10;i++)
{
System.out.println(Math.pow(i,b));
}
}
}
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
I want Ada programming language books. Could anyone post me any link for that?
How to use string functions in QTP?give some examples
Write a shell program where you enter a number which corresponds to K.M. Find out the corresponding values in m, cm, inches, and feet. Hints:- 1 k.m= 1000 m 1 m= 100 cm 1 inches= 2.54 cm. 1 feet= 12 inches
a characteristic of a multiprogramming is? a.simultaneous exe of pgm instr 4m 2 appli b.concurrent processing of 2 r more prgms c.multiple cpu s d.all the abov
Explain what is OOPS and its concepts?
How to get the index of the clicked field in reports in ABAP?
can any one suggestion me present which course(except java,.net) has huge demand in the market?
1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?
1.how to deploy the Maven application in weblogic server? 2.In Real time projects all classes are singleton or some classes only singleton explain? 3.what are the major uses of the designpatterns? 4.explain restful &Soap based services explain?
what is the difference between read the data from table and infotype
give idea for creating screen in abap
What are the tasks performed by a Team Lead
why we need to take u?
could you please tell me how to draw the calibration curve for HPLC {the software which we are using}?
In project we have Documentation phase also,in that what is micro and macro designing?