#include<stdio.h>
int main()
{
int a, b, c;
int x;
while(scanf("%d%d%d", &a, &b, &c)){
for(x = 10;x < 100; ++x)
{
if((x % 3 == a) &&( x % 5 == b) & (x % 7 == c)){
printf("%d\n", x); break;//注意break,跳出循环
}
}if(x == 100)
{
printf("No answer!\n");
}
}//为什么要把他放到外面? 考虑一下for循环的(初始化,条件,调整)
return 0;
}
int main()
{
int a, b, c;
int x;
while(scanf("%d%d%d", &a, &b, &c)){
for(x = 10;x < 100; ++x)
{
if((x % 3 == a) &&( x % 5 == b) & (x % 7 == c)){
printf("%d\n", x); break;//注意break,跳出循环
}
}if(x == 100)
{
printf("No answer!\n");
}
}//为什么要把他放到外面? 考虑一下for循环的(初始化,条件,调整)
return 0;
}