Pages
Home
News
Projects
Source Codes
Electronic Circuits
Download Softwares
Engineering Books
While Loop In C++
Basic Syntax :
while( condition )
{
// code
}
Example :
#include <iostream>
using namespace std;
int main() {
int i = 0;
while(i < 5)
{
cout<<"this is loop ";
i++:
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment