Forem

Mohammed Salah
Mohammed Salah

Posted on

C++14th Code (Loop using for)

   #include<iostream>
   using namespace std;
   int main()
   {
double a;
int b ; 
cout<<" Enter Number    : ";
cin>>a;
cout<<"Enter the number of repeatation : ";
cin>>b; 
for(a=0;a<b+1;a++)
{
cout<<" The number is -->  "<<a<<endl;
}
cin.get();
return 0 ;
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay