正在加载图片...
#include <stdio. h> int mal nt a.b. c d=100 W」 d%10 b=d/10%10 a=d/10 if(a==b&& b!=c la=c&&b!=c b==c & a!=b printf(%d\n", d) return o 方案二:该方案巧妙地利用了条件判断表达式的特性。 #include <stdio. h> int maino3 #include <stdio.h> int main() { int a,b,c,d = 100; while(d <= 999) { c = d % 10; b = d / 10 % 10; a = d/100; if(a==b && b!=c||a==c && b!=c||b==c && a!=b) printf("%d\n",d); d++; } return 0; } 方案二:该方案巧妙地利用了条件判断表达式的特性。 #include <stdio.h> int main() {
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有