[COLOR=Blue] #include[/COLOR][COLOR=Sienna]<iostream>[/COLOR]
[COLOR=Blue] void[/COLOR] main()
{
[COLOR=Blue]int[/COLOR] number=0,tmp1=0, tmp2=0, x =0;
std::cout<<[COLOR=Sienna]"Enter the number: "[/COLOR];
std::cin>>number;
x=number; //the original number
[COLOR=Blue]for[/COLOR](;number>0;)
{
tmp1=number%10;
number /=10;
tmp2=number%10;
[COLOR=Blue] if[/COLOR](tmp1 > 5 && tmp2 >6)//Check the conditions here.
{
std::cout<<x<<" [COLOR=Sienna]IS GOOD\n[/COLOR]";
[COLOR=Blue]break[/COLOR];
}
[COLOR=Blue]if [/COLOR](number ==0)//At the end now.
{
std::cout<<x<<" [COLOR=Sienna]IS NOT GOOD\n[/COLOR]";
}
}
std::cin>>tmp1;//stops the console from closing too quickly
}