WAP to print following series using while wend loop 121 , 81 , 49 , 25 , 9 , 1
Answers
Answered by
3
Step 1: Initially try to read the question , and think about what all changes are made in each digits as we are moving forward .
Step 2: As you will see that all the digits are square’s of digits , after analysing it once again , you will get that the given digits are squares of odd digits.
Step 3: And we can write odd digits in one more form (2*n+1). But those above digits are square of odd numbers so instead we will write as (2*n+1)^2.
Step 4: So now we just need to substitute values in place of n.
So for n=0,we get (2*0+1)^2=1
for n=1 ,we get (2*1+1)^2=9
for n=2,we get (2*2+1)^2=25
and so on.
I hope you are able to get what i am trying to do .
At last KEEP THINKING !!
and KEEP SMILING!!
Explanation:
Similar questions
Social Sciences,
1 month ago
Social Sciences,
1 month ago
History,
1 month ago
Math,
2 months ago
English,
8 months ago