Lecture 88
// Loop While 
#include <iostream>
#include <conio.h>
using namespace std;
 main ()
{  
     
int count,total;
     
count=0,total=0;
     
while(count<10)
     
{
       
total=total+count;
       
cout<<"Count: "<<count<<"  Total: "<<total<<endl;         
       
count++;
     
}
 
getch();
 
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
      Run program Ctrl+F10


