Author Topic: Welcome to C Programming  (Read 1695 times)

administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 69
Welcome to C Programming
« on: October 19, 2010, 11:18:53 am »
This is the forum created by Admin on www.softwareandfinance.com to discuss any questions you might have on C Programming Language

ssenyonjo musa

  • Newbie
  • *
  • Posts: 1
Re: Welcome to C Programming
« Reply #1 on: October 21, 2010, 02:22:31 am »
what is the syntax of awhile statement?

kathir

  • Administrator
  • Sr. Member
  • *****
  • Posts: 283
Re: Welcome to C Programming
« Reply #2 on: October 21, 2010, 03:07:35 am »

// while - one statement
while(<condition>)
    statement1;

// while compound statements
while(<condition>)
{
      // statement 1
      // statement 2
       .....
       .....
      // statement N
}


Use while(1) for infinite loop.
Refer to: http://softwareandfinance.com/CPP_Loops.html

 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1