MCPcopy Create free account
hub / github.com/chaharnishant11/CodeIn10DSA / main

Function main

C++/Code/whileLoop.cpp:4–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int main(){
5 int i = 0; //in while & do while loop you must initialize a variable before hand
6
7 while (i<10){
8 cout<<"hello code in 10 fam"<<endl;
9 i+=2; //this is a short form for writing i=i+2
10 }
11}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected