#794. C++-循环while-对于给定的任意正整数(个位可为0),将其各个位上的数字分离并倒序输出

    ID: 794 Type: Default 1000ms 256MiB Tried: 136 Accepted: 67 Difficulty: 4 Uploaded By: Tags>CSP厦门信息学厦门创客大赛C++项目信息科技特长生

C++-循环while-对于给定的任意正整数(个位可为0),将其各个位上的数字分离并倒序输出

Background

Description

对于给定的任意正整数(个位可为0),将其各个位上的数字分离并倒序输出: 输入:123 输出:321 image

Format

Input

Output

Samples

123
321
12300
00321

Limitation

1s, 1024KiB for each test case.

Statistics

Related

In following contests:

循环while