C++14th Code (Loop using for)
Mohammed Salah

Mohammed Salah @md-salah

About: Civil Engineer Like programming

Location:
saudi arabia
Joined:
Jan 15, 2025

C++14th Code (Loop using for)

Publish Date: Jan 23
0 0
   #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

Comments 0 total

    Add comment