Computer Science, asked by yashi82, 1 year ago

guys... can somebody explain how this output came?!

Attachments:

Answers

Answered by dishantsinghom
0
it is not a output it is the input from which output displays

yashi82: i am talking about the left side where it says.. ...SUM IS 15
yashi82: i mean right! **
dishantsinghom: u have inserted the formula for sum of first 5 natural numbers
yashi82: yeah i know that but i didn't get... BUNK! i won't be able to explain what i didn't get coz i myself don't know! i know that's really idiotic to say.. but yeah. i didn't get it... u plz try to explain it to me plz!
dishantsinghom: it is a tag in html from which help it calculates
dishantsinghom: that's all I can explain because I don't know what you are not getting
yashi82: this is Javascript actually... so it may be a tag in Javascript....... .
dishantsinghom: oh yeah sorry
yashi82: see.. if we have not specified a condition for Sum , then how is it working the loop shouldn't be executed... bit it IS actually executing... all i don't get is WHY AND HOW?!
dishantsinghom: hold on
Similar questions