<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>C语言程序设计 by </title>
      <link>https://padlet.com/364726312/9smznaz0i5oe</link>
      <description>尚晓明</description>
      <language>en-us</language>
      <pubDate>2016-10-17 05:36:28 UTC</pubDate>
      <lastBuildDate>2023-02-18 17:18:13 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet-assets.s3.amazonaws.com/icons/Soccerball.png</url>
      </image>
      <item>
         <title>C语言程序设计</title>
         <author>364726312</author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/131040493</link>
         <description><![CDATA[<div>第三次作业<br><strong>1<br>#include &lt;stdio.h&gt;<br>int main()<br>{<br>	int num;<br>	printf("输入一个整数");<br>	scanf("%d",&amp;num);<br>	if(num%2==0)<br>		printf("yes\n");<br>	else<br>		printf("no\n");<br>}<br>2<br>#include &lt;stdio.h&gt;<br>int main()<br>{<br>&nbsp; &nbsp; int x,y;<br>	printf("Please input the number x:");<br>	scanf("%d",&amp;x);<br>	if(x&lt;1)<br>	&nbsp; &nbsp; y=x;<br>	else if(x&gt;=1&amp;&amp;x&lt;10)<br>		y=2*x-1;<br>	else<br>		y=3*x-1;<br>	printf("%d\n",y);<br>}<br>3<br>#include &lt;stdio.h&gt;<br>int main()<br>{<br>&nbsp; &nbsp; int num1,num2;<br>	printf("Please input the num:");<br>	scanf("%d",&amp;num1);<br>	if(num1%3==0&amp;&amp;num1%7==0)<br>		num2=2;<br>	else if(num1%3==0||num1%7==0)<br>		num2=1;<br>	else<br>		num2=0;<br>	printf("%d\n",num2);<br>}<br></strong><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-17 05:54:57 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/131040493</guid>
      </item>
      <item>
         <title></title>
         <author>364726312</author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/131042993</link>
         <description><![CDATA[<div>大家可以把自己的程序粘贴进来，或者有什么疑问，可以在这里提出。</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-17 06:25:23 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/131042993</guid>
      </item>
      <item>
         <title>我们先用C语言做尝试，后面再在matlab上也运用</title>
         <author></author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/131044796</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2016-10-17 06:39:49 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/131044796</guid>
      </item>
      <item>
         <title>实训三</title>
         <author>364726312</author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/132005734</link>
         <description><![CDATA[<div>1、<br><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; char a,b,c;</strong></div><div><strong>scanf("%c,%c,%c",&amp;a,&amp;b,&amp;c);</strong></div><div><strong>printf("%c %c %c\n",a,b,c);</strong></div><div><strong>printf("%d %d %d\n",a,b,c);</strong></div><div><strong>&nbsp; &nbsp; return 0;</strong></div><div><strong>}<br></strong>2、<br><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; int w,x,y,z;</strong></div><div><strong>w=1;x=2;y=3;z=4;</strong></div><div><strong>printf("%d\n",w&gt;x?w:y&lt;z?y:z);</strong></div><div><strong>return 0;</strong></div><div><strong>}</strong> <br>3、<br><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; int a,b,c,num;</strong></div><div><strong>printf("Please input the number:");</strong></div><div><strong>scanf("%d",&amp;num);</strong></div><div><strong>a=num/100;</strong></div><div><strong>b=num%100/10;</strong></div><div><strong>c=num%10;</strong></div><div><strong>num=c*100+b*10+a;</strong></div><div><strong>printf("%d\n",num);</strong></div><div><strong>return 0;</strong></div><div><strong>}<br></strong>4、<br><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; int a,b;</strong></div><div><strong>long int c;</strong></div><div><strong>printf("请输入两个整型数:");</strong></div><div><strong>scanf("%d,%d",&amp;a,&amp;b);</strong></div><div><strong>c=a/100*100000+a%100/10*1000+a%10*10;</strong></div><div><strong>c+=b/100*10000+b%100/10*100+b%10;</strong></div><div><strong>printf("result=%ld\n",c);</strong></div><div><strong>return 0;</strong></div><div><strong>}<br></strong>5、<br><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>#include &lt;math.h&gt;</strong></div><div><strong>#define PI 3.14</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; double A,B,C,D,E,num;</strong></div><div><strong>A=2.1;B=-4.5;C=6;D=3.5;E=-5;</strong></div><div><strong>num=atan((2*PI*A+E/(2*PI*B*C))/D);</strong></div><div><strong>printf("%.4f\n",num);</strong></div><div><strong>return 0;</strong></div><div><strong>}</strong>-<br>6、<br><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; long x,y,z;</strong></div><div><strong>printf("Please input the number:");</strong></div><div><strong>scanf("%ld,%ld",&amp;x,&amp;y);</strong></div><div><strong>z=x;</strong></div><div><strong>x=y;</strong></div><div><strong>y=z;</strong></div><div><strong>printf("%ld,%ld\n",x,y);</strong></div><div><strong>return 0;</strong></div><div><strong>}</strong>&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-20 09:17:23 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/132005734</guid>
      </item>
      <item>
         <title>第四次作业</title>
         <author>364726312</author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/132591132</link>
         <description><![CDATA[<div><strong>4、给出任意一个不多于5位的正整数，要求如下：</strong></div><div><strong>（1）求出它是几位数；</strong></div><div><strong>（2）分别输出每一位数字；</strong></div><div><strong>（3）按逆序输出各位数。</strong></div><div><strong>#include &lt;stdio.h&gt;</strong></div><div><strong>int main()</strong></div><div><strong>{</strong></div><div><strong>&nbsp; &nbsp; int n,m,j=0,a,b,c,d,e,i;</strong></div><div><strong>printf("pleae input the number:");</strong></div><div><strong>scanf("%d",&amp;n);</strong></div><div><strong>m=n;</strong></div><div><strong>while(m)</strong></div><div><strong>{ j++;m=m/10;}</strong></div><div><strong>printf("%d\n",j);</strong></div><div><strong>&nbsp; &nbsp; a=n/10000;</strong></div><div><strong>if(a!=0)</strong></div><div><strong>printf("%d\n",a);</strong></div><div><strong>&nbsp; &nbsp; b=n%10000/1000;</strong></div><div><strong>if(b!=0)</strong></div><div><strong>printf("%d\n",b);</strong></div><div><strong>c=n%1000/100;</strong></div><div><strong>if(c!=0)</strong></div><div><strong>printf("%d\n",c);</strong></div><div><strong>d=n%100/10;</strong></div><div><strong>if(d!=0)</strong></div><div><strong>printf("%d\n",d);</strong></div><div><strong>&nbsp; &nbsp; e=n%10;</strong></div><div><strong>if(e!=0)</strong></div><div><strong>printf("%d\n",e);</strong></div><div><strong>&nbsp; &nbsp; m=n;</strong></div><div><strong>while(m)</strong></div><div><strong>{ i=m%10;printf("%d",i);m=m/10;</strong></div><div><strong>}</strong></div><div><strong>printf("\n");</strong></div><div><strong>return 0;</strong></div><div><strong>}</strong></div>]]></description>
         <enclosure url="" />
         <pubDate>2016-10-24 02:12:44 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/132591132</guid>
      </item>
      <item>
         <title></title>
         <author>364726312</author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/132611093</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padletuploads.blob.core.windows.net/aws/140570573/0c8b9f8ecf178b6904819cec0b40f738/IMG_20161024_143830_edit.jpg" />
         <pubDate>2016-10-24 06:45:45 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/132611093</guid>
      </item>
      <item>
         <title>实训五的程序</title>
         <author></author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/139601010</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2016-11-23 14:47:39 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/139601010</guid>
      </item>
      <item>
         <title>我也想看实训五的程序</title>
         <author></author>
         <link>https://padlet.com/364726312/9smznaz0i5oe/wish/139603549</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2016-11-23 14:59:24 UTC</pubDate>
         <guid>https://padlet.com/364726312/9smznaz0i5oe/wish/139603549</guid>
      </item>
   </channel>
</rss>
