Friday, December 6, 2024

DO WHILE C++ PROGRAMMING

 NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                   

                           POLLACHI-642001

                                     R.Rasigapriya

                           Bsc Computer Science(Ist Year)

                                   13.Do While

#include <iostream>

int main()

{

          int i=0;

    do

    {

                   std::cout<<i<<"\n";

                   i++;

          }

          while(i<=30);

          {

                   std::cout<<"STOP"<<std::endl;

          }

          do

          {

          std::cout<<i<<"\n";

                   i++;

          }

          while(i<=40);

          {

                   std::cout<<"READY"<<std::endl;

          }

          do

          {

                   std::cout<<i<<"\n";

                   i++;

          }

          while(i<=70);

          {

                   std::cout<<"GO"<<std::endl;

          }

          return 0;

}

OUTPUT:



 

 

 

 




USD TO INR C++ PROGRAMMING

  NALLAMUTHU GOUNDER MAHALINGAM COLLEGE                                                 POLLACHI-642001                                     ...