<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://gentoo-zh.org/extern.php?action=feed&amp;tid=384&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo-zh / C 练习实例75]]></title>
		<link>http://www.gentoo-zh.org/viewtopic.php?id=384</link>
		<description><![CDATA[C 练习实例75 最近发表的帖子。]]></description>
		<lastBuildDate>Mon, 29 Aug 2022 11:44:53 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[C 练习实例75]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?pid=390#p390</link>
			<description><![CDATA[<p>题目：输入一个整数，并将其反转后输出。</p><p>程序分析：无。</p><div class="codebox"><pre><code> 
#include &lt;stdio.h&gt;
int main()
{
    int n, reversedNumber = 0, remainder;
 
    printf(&quot;输入一个整数: &quot;);
    scanf(&quot;%d&quot;, &amp;n);
 
    while(n != 0)
    {
        remainder = n%10;
        reversedNumber = reversedNumber*10 + remainder;
        n /= 10;
    }
 
    printf(&quot;反转后的整数: %d&quot;, reversedNumber);
 
    return 0;
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Mon, 29 Aug 2022 11:44:53 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?pid=390#p390</guid>
		</item>
	</channel>
</rss>
