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

#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 –> “<&…


This content originally appeared on DEV Community and was authored by Mohammed Salah

    #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 ; 
    }


This content originally appeared on DEV Community and was authored by Mohammed Salah


Print Share Comment Cite Upload Translate Updates
APA

Mohammed Salah | Sciencx (2025-01-22T21:12:14+00:00) C++13th code (Loop using if –> Even Number ). Retrieved from https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/

MLA
" » C++13th code (Loop using if –> Even Number )." Mohammed Salah | Sciencx - Wednesday January 22, 2025, https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/
HARVARD
Mohammed Salah | Sciencx Wednesday January 22, 2025 » C++13th code (Loop using if –> Even Number )., viewed ,<https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/>
VANCOUVER
Mohammed Salah | Sciencx - » C++13th code (Loop using if –> Even Number ). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/
CHICAGO
" » C++13th code (Loop using if –> Even Number )." Mohammed Salah | Sciencx - Accessed . https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/
IEEE
" » C++13th code (Loop using if –> Even Number )." Mohammed Salah | Sciencx [Online]. Available: https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/. [Accessed: ]
rf:citation
» C++13th code (Loop using if –> Even Number ) | Mohammed Salah | Sciencx | https://www.scien.cx/2025/01/22/c13th-code-loop-using-if-even-number/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.