Jump to content

Cplusplus: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 293: Line 293:
  {
  {
     int a = 0;
     int a = 0;
 
     while(a < 100)
     while(a < 100)
     {
     {
Line 299: Line 299:
         a++;
         a++;
     }
     }
 
     return(0);
     return(0);
  }
  }
Line 320: Line 320:
   
   
  using namespace std;
  using namespace std;
 
  int main()
  int main()
  {
  {
     int a = 0;
     int a = 0;
 
     do
     do
     {
     {
Line 331: Line 331:
     }
     }
     while(a < 100);
     while(a < 100);
 
     return(0);
     return(0);
  }
  }
Line 340: Line 340:


  #include <iostream>
  #include <iostream>
 
using namespace std;
   
   
using namespace std;
  int main()
  int main()
  {
  {
Line 349: Line 349:
       cout << a << endl;
       cout << a << endl;
     }
     }
 
     return(0);
     return(0);
  }
  }
244

edits