Advertisement
STANAANDREY

pclab3 1

Oct 12th, 2022
677
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.   int n;
  5.   printf("n="); scanf("%d", &n);
  6.   while (n > 10) {
  7.     printf("%d\n", n);
  8.     n -= n / 10;
  9.   }
  10.   return 0;
  11. }
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement