Show life that you have a thousand reasons to smile
© Copyright 2024 DOKU.TIPS - All rights reserved.
using namespace std;
int main(){
int n, r=0;
cout<<"n=";
cin>>n;
while(n>0){
if(n%10==3){
r=1;
}
n=n/10;
}
if(r==1){
cout<<"Exista cifra 3!";
}else{
cout<<"Nu exista cifra 3!";
}
return 0;
}