fork download
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

bool abcdef(int num) {
	int u,m;
	if(!(num/10)) //jezeli jednocyfrowa
		return false;
	while(num) {
		m = num%10;
		num /= 10;
		u = num%10;
		if(u > m)
			return false;
	}
	return true;
}

int main(void) {
	int test[] = { 123357, 0, 110, 57, 1, 777 };
	size_t n = sizeof(test)/sizeof(test[0]);
	while(n--) {
		if(abcdef(test[n]))
			printf("%d\n",test[n]);
	}
	return 0;
}
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
777
57
123357