Untitled
Anonymous
plain_text
12/05/2022 8:35 PM
676 B
21
Indexable
#include <iostream>
using namespace std;
int main()
{
long income=0,temp=0;
int i=0;
bool flag=true;
while (i<9 )
{
i++;
std::cin >> income;
income/=10;
temp=income/10;
if(temp>0||temp<9)
{
if(income >9 || income <0)
{
std::cout <<"Incorret number ! Please Try Again"<<endl;
i--;
}
}
}
std::cout<<"SUCCESS"<<endl;
return 0;
}Editor is loading...