WHILE LOOPING

While loop is similar to for loop only syntax is different but working of both loop is same It consist of starter condition and incremental. to understand this loop we do some programs which is shown an example

EXAMPLE:
This is the flow chart  on which a while loop follows. this also show the loop starting point ,loop condition and increment.
PROGRAMS:
PROGRAM#2
This is the program of  while loop. in this program we suppose the number(decimal) X &Y  just like in mathematics we suppose a number x&y as the suppose number is decimal no so we use float instead of  int. Then  we in put a floating value X.Then we use loop i.e. while with condition.In loop we in a floating number  i.e 0 that is a increment the program stop only when we in put the value of  Y is 0.note that the C compiler is case sensitive. The output of this program is shown as follows

OUTPUT:

Comments

  1. The King Casino and Resort
    The king herzamanindir.com/ casino and resort features a modern casino with everything you'd expect from a classic Vegas ventureberg.com/ Strip casino. The resort features 50000 square feet of Funding: $250 novcasino millionDesign: 메이피로출장마사지 Inspired DesignMasters: Ivan casinosites.one Karaszko

    ReplyDelete

Post a Comment

Popular posts from this blog

Stack

EXTRA INFORMATION ABOUT TECHNOLOGY