#python
def searh_4(a):
flag=False
for i in (str(a)):
if int(i)==4:
flag=True
return flag
//c++
#include <iostream>
using namespace std;
bool nod(int a) {
int d;
d = a;
while (d!=0 ){
int f;
f = d % 10;
if (f==4) {
return true;
}
d =d/ 10;
return false;
int main() {
cout << nod(1234521);
system("pause");
#python
def searh_4(a):
flag=False
for i in (str(a)):
if int(i)==4:
flag=True
return flag
//c++
#include <iostream>
using namespace std;
bool nod(int a) {
int d;
d = a;
while (d!=0 ){
int f;
f = d % 10;
if (f==4) {
return true;
}
d =d/ 10;
}
return false;
}
int main() {
cout << nod(1234521);
system("pause");
}