______♥______
Write program for given series by for loop
1²+2²+3²--------100²
And also print the results.
Google se chapne ki julm naah kare. Dhanyabad.☺
@BeardoBoy
Answers
Answer:
Hey mate here is your answer....
into for loop
First Iteration
i = 1 so the condition inside the for loop (i <= Number) is TRUE (1 <=4). Next, It will go to if condition (i != Number). It means (1 != 4) – Which is TRUE So, it will print the output as 1²+
i = 2. Repeat the same until i reaches 4. When i = 4, if condition fails so, Else statement is printed.
The final Output will be 1²+2²+3²+4² = 30
C Program to Find Sum of series 1²+2²+3²+….+n² using Functions
In this C program user is asked to enter any positive integer and then using that value, compiler will find the sum of series 12 + 22 + 32 + … + n2 using functions.
hope it's helpful for you.....
thanks
don't follow me ....
Answer:
Hey mate here is your answer....
into for loop
First Iteration
i = 1 so the condition inside the for loop (i <= Number) is TRUE (1 <=4). Next, It will go to if condition (i != Number). It means (1 != 4) – Which is TRUE So, it will print the output as 1²+
i = 2. Repeat the same until i reaches 4. When i = 4, if condition fails so, Else statement is printed.
The final Output will be 1²+2²+3²+4² = 30
C Program to Find Sum of series 1²+2²+3²+….+n² using Functions
In this C program user is asked to enter any positive integer and then using that value, compiler will find the sum of series 12 + 22 + 32 + … + n2 using functions.
hope it's helpful for you.....
thanks
don't follow me ...