c语言编译,从键盘输入一个三位正整数,然后反向输出对应的数,如果输入的数不是三位正整数,则输出-1
#include <stdio.h> int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a<=0 || b<=0 ||c<=0) printf("-1"); else printf("%d %d %d",b,c,a); return 0; }