DEV Community

Mohammed Salah
Mohammed Salah

Posted on

C++ 6th (if Statement )

    #include<iostream>
    using namespace std; 
    int main()
    {
int a;
cout<<" Enter the value of a = " ;
cin>>a; 
if(a<10)
{
cout<<" Welcome in C++ World" ; 
}

else
{
cout<<" Bye Bye"<<endl;
}

    cin.get();
return 0; 
    }
Enter fullscreen mode Exit fullscreen mode

Top comments (0)