题解 | The Biggest Water Problem
The Biggest Water Problem
https://www.nowcoder.com/practice/435aa556e093463891f6da7d322140a4
#include <stdio.h> int getNumer(int n){ while(n>9){ n=n%10+n/10; if(n>=0&&n<=9){ break; } } return n; } int main() { int n=0; scanf("%d",&n); printf("%d",getNumer(n)); return 0; }
c语言刷题 文章被收录于专栏
c语言刷题题目