C++13th code (Loop using if --> Even Number )
Mohammed Salah

Mohammed Salah @md-salah

About: Civil Engineer Like programming

Location:
saudi arabia
Joined:
Jan 15, 2025

C++13th code (Loop using if --> Even Number )

Publish Date: Jan 22
4 0
    #include<iostream>
    using namespace std; 
    int main()
    {
int i ; 
cout<<" \n\n\t\t Enter The number : ";
cin>>i; 
start :
if(i>500)
{
return 0;   
}
if (i%2==0)
{
    cout<<"\n This is even number  --> "<<" ("<<i<<") "; 
}
i++;
goto start; 
    cin.get();
    return 0 ; 
    }
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment