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
how can i split string in a textbox in windows appication using C#.net
3. What is the difference between testing and Quality Assurance?
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
Please describe an example where you used object orientation in one of your programs.
What sysoption determines where the macro facility searches a specific catalog for complied macro?
1.Mutating table
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
can we allocate memory for interface? if no then why?
what are other resources are needed for this mantis?
iam confused among testing ,.net and java. can anybody help me.
how do you generate source code for the automatic generation for receipt number
WS-NUM PIC S9(05)V(02) SIGN TRAILING SEPARATE MOVE '0050000+' TO WS-NUM The value stored is 00500,00+ MOVE '0050000-' TO WS-NUM Then what is the value will be stored in WS-NUM? Am getting '-00500,00'.....>>> What should I declare to WS-NUM so that I can get correct values for both + & - signs.
what is integration testing in real time applications?
Difference between HTML and DHTML?
What is the entry point function of a DLL?