// loop example 0: Numbers #include void main() { int i; i=1; while(i<=10) { cout< void main() { int i; int j; int sum; cout <<"enter number "; cin >>i; sum=0; j=1; while(j<=i) { sum=sum+j; j=j+1; }//end of while loop cout<<" triangular number "< void main() { int i; int j; int sum; cout <<"enter number "; cin >>i; sum=0; j=1; while(j<=i/2) { if(i%j ==0) {cout<< j<<" is a factor of "< void main() { int f1,f2,f3; f1=1; f2=1; while(f1<10000000) { cout< void main() { //variable //Percentage of population in each of three groups double infected,susceptible,removed; //temp stores double sickening, recovering; //factors governing infection and recovery double ifact, rfact; //time int t; //setup t=0; infected = 2.0; susceptible=98.0; removed=0; ifact=0.005; rfact=0.2; while(t<100) { sickening=ifact*infected*susceptible; recovering=rfact*infected; susceptible=susceptible-sickening; infected=infected+sickening-recovering; removed=removed+recovering; t=t+1; cout<6) { cout<<"C"<15) { cout<<"D"< void main() { int i; i=1; while(i<=10) { cout<