20 lines
252 B
C
20 lines
252 B
C
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
int n;
|
|
|
|
printf("Input positive integer: ");
|
|
scanf("%d", &n);
|
|
|
|
while (n >= 0) {
|
|
printf("%d ", n);
|
|
n--;
|
|
|
|
if (n < 0) {
|
|
printf("\n");
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|