Meaningless
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #include <stdio.h> int main(void) {     char _Array[10] = { 0, };     int inputInteger = 33;     char symbol = '3';     int loop = 0, index = 0, count = 0;     for (loop = 1; loop < inputInteger + 1; loop++) {         sprintf(_Array, "%d", loop);         while (_Array[index]) {             if (_Array[index] == symbol) {                 printf("%s ", _Array);                 count++;             }             index++;         }         index = 0;     }     printf("\n\n%d\n", count);     return 0; } | cs | 
0 개의 댓글:
댓글 쓰기