if nested in Cpp
if inside if syntax in cpp
#include<iostream>
using namespace std;
int main()
{
if(true)
{
cout<<"first true"<<endl;
if(true)
{
cout<<"second true"<<endl;
if(true)
{
cout<<"third true"<<endl;
}
if(false)
{
//not show output
}
}
if(false)
{
//not show output
}
}
return 0;
}
Comments
Post a Comment
Any doubt about programming or questions