<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[lothlorien_的博客]]></title><description><![CDATA[大一小菜鸡的c语言历程]]></description><link>https://blog.youkuaiyun.com/lothlorien_</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; lothlorien_]]></copyright><item><title><![CDATA[C语言——杨辉三角]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105841860</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105841860</guid><author>lothlorien_</author><pubDate>Wed, 29 Apr 2020 15:57:40 +0800</pubDate><description><![CDATA[杨辉三角
题目内容：
输出一个杨辉三角形的前10行
每行两个数之间用’-'隔开
输出样例：
1
1-1
1-2-1
1-3-3-1
…
#include &lt;stdio.h&gt;
int main()
{
	int a[10][10],i,j;
	for(i=0;i&lt;10;i++){
			a[i][0]=1;
			a[i][i]=1;
	}
	for(i=2;i&lt;10;i++...]]></description><category></category></item><item><title><![CDATA[C语言——数组 统计有多少不相同的数据]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105690919</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105690919</guid><author>lothlorien_</author><pubDate>Wed, 22 Apr 2020 19:38:47 +0800</pubDate><description><![CDATA[题目内容：
键盘输入一个长度为10数组，统计其中有多少不相同的数据。
输入格式:
依次输入数组元素，以空格隔开
输出格式：
输出数组中不相同的数的个数
输入样例：
1 2 3 4 5 1 2 3 4 5
输出样例：
5
#include &lt;stdio.h&gt;
int main()
{
	int a[10],i,j,n=10;
	for(i=0;i&lt;10;i++){
	scanf("...]]></description><category></category></item><item><title><![CDATA[C语言——解四元一次方程组]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105622889</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105622889</guid><author>lothlorien_</author><pubDate>Sun, 19 Apr 2020 21:39:41 +0800</pubDate><description><![CDATA[方程x1+x2+x3+x4=30有多少满足x1&gt;=2,x2&gt;=0,x3&gt;=-5,x4&gt;=8的整数解？（用for循环或while循环实现）
#include &lt;stdio.h&gt;
int main()
{
	int x1,x2,x3,x4,i=0;
	for(x1=2;x1&lt;=27;x1++){
		for(x2=0;x2&lt;=25;x2++){
			f...]]></description><category></category></item><item><title><![CDATA[C语言  函数——反序输出字符串]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105458044</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105458044</guid><author>lothlorien_</author><pubDate>Sat, 11 Apr 2020 19:28:14 +0800</pubDate><description><![CDATA[写一个函数，使输入的一个字符串按反序存放，在主函数中输入和输出字符串。
#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
void f(char str1[100]){
	int t,i,j;
	char str2[100];
	strcpy(str2,str1);
	t=strlen(str1);
	for(i=t-1,j=0;i&gt;0,j...]]></description><category></category></item><item><title><![CDATA[C语言  把数插入有序数组]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105397346</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105397346</guid><author>lothlorien_</author><pubDate>Wed, 08 Apr 2020 21:21:17 +0800</pubDate><description><![CDATA[题目描述
给定一个从小到大有序的整数序列，将其保存至数组。另外输入一个整数，将其插入至这个数组中并保持数组有序。
输入
第一行有一个正整数n，表示原始的整数序列长度为n，保证n不超过50。
第二行有n个整数，表示原始的整数序列，保证这个序列是从小到大给出的。
第三行有一个整数，表示需要插入的整数。
输出
在一行中输出n+1个整数，表示完成插入的整数序列。每个整数后输出一个空格。
请注意行尾输出换行...]]></description><category></category></item><item><title><![CDATA[C语言  数组——字符串比大小]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105397289</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105397289</guid><author>lothlorien_</author><pubDate>Wed, 08 Apr 2020 21:19:13 +0800</pubDate><description><![CDATA[输入3个字符串，找出并输出其中的最大一个字符串。
输入
有三行，每行一个不包含空格的字符串，保证每个字符串的长度不超过100。
输出
在一行中输出读入的3个字符串中的最大一个。
请注意行尾输出换行。
样例输入
CHINA
HOLLAND
AMERICA
#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
int main()
{
	char str...]]></description><category></category></item><item><title><![CDATA[C语言  循环结构——求满足条件的整数]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105359567</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105359567</guid><author>lothlorien_</author><pubDate>Tue, 07 Apr 2020 11:00:10 +0800</pubDate><description><![CDATA[求介于两个正整数（假设最大不超过1000）之间的能被3整除，且至少有一位数字为5的所有整数。
#include &lt;stdio.h&gt;
int main()
{
    int m,n,i,a,b,c;
    scanf("%d %d",&amp;m,&amp;n);
    for(i=m;i&lt;=n;i++){
    	if(i%3==0){
    	        a=i/...]]></description><category></category></item><item><title><![CDATA[C语言  输入两个正整数m和n，求其最大公约数和最小公倍数]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105359521</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105359521</guid><author>lothlorien_</author><pubDate>Tue, 07 Apr 2020 10:58:29 +0800</pubDate><description><![CDATA[#include&lt;stdio.h&gt;
int main()
{	
	int m,n;	
	int z,a,t=1;	
	int i;	
	scanf("%d %d",&amp;m,&amp;n);
	if (m&lt;n){		
		z=m;
		m=n;
		n=z;
	}
	for (i=2;i&lt;n+1;i++) {
		if((m%i==0)&amp;&amp;(n%i==0...]]></description><category></category></item><item><title><![CDATA[C语言  电文加密]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105359437</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105359437</guid><author>lothlorien_</author><pubDate>Tue, 07 Apr 2020 10:56:55 +0800</pubDate><description><![CDATA[给电文加密。加密规则是对于每一个字符，如果是字母，变换成其相应的其后（循环的字母序，即A紧跟在Z的后面）的第4个字母。例如A变成E，a变成e，W变成A，X变成B，Y变成C，Z变成D。如果不是字母，则不进行变换。
#include &lt;stdio.h&gt;
int main()
{
	char c;
    c = getchar();
    while( c != '\n' ) {
   ...]]></description><category></category></item><item><title><![CDATA[C语言  数组——找出二维数组中最大元素及其行列号]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105352285</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105352285</guid><author>lothlorien_</author><pubDate>Mon, 06 Apr 2020 21:46:47 +0800</pubDate><description><![CDATA[#include &lt;stdio.h&gt;
int main()
{
	int a[3][4]={{1,2,3,4},{2,3,4,5},{3,4,5,6}};
	int i,j,row,colum,max;
	max=a[0][0];
	for(i=0;i&lt;3;i++){
		for(j=0;j&lt;4;j++){
			if(a[i][j]&gt;max){
			max=a[i...]]></description><category></category></item><item><title><![CDATA[C语言  数组——计算各科成绩平均值和总平均值]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105350254</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105350254</guid><author>lothlorien_</author><pubDate>Mon, 06 Apr 2020 20:12:03 +0800</pubDate><description><![CDATA[#include &lt;stdio.h&gt;
int main()
{
	int a[5][3]={{80,96,78},{70,76,68},{76,84,90},{78,66,90},{94,78,72}};
	int i,j,sum=0,aver,v[3];
	for(i=0;i&lt;3;i++){
		for(j=0;j&lt;5;j++){
			sum+=a[j][i];
		}...]]></description><category></category></item><item><title><![CDATA[C语言  数组——选择排序法]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105347202</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105347202</guid><author>lothlorien_</author><pubDate>Mon, 06 Apr 2020 17:18:47 +0800</pubDate><description><![CDATA[#include &lt;stdio.h&gt;
int main()
{
	int a[10],i,j,t;
	for(i=0;i&lt;=9;i++){
		scanf("%d",&amp;a[i]);
	}
	for(i=0;i&lt;=8;i++){
		for(j=i+1;j&lt;=9;j++){
		if(a[i]&gt;a[j]){
		t=a[i];
		a[i]=a[j];
	...]]></description><category></category></item><item><title><![CDATA[C语言  数组———冒泡排序法]]></title><link>https://blog.youkuaiyun.com/lothlorien_/article/details/105346979</link><guid>https://blog.youkuaiyun.com/lothlorien_/article/details/105346979</guid><author>lothlorien_</author><pubDate>Mon, 06 Apr 2020 17:17:01 +0800</pubDate><description><![CDATA[#include &lt;stdio.h&gt;
int main()
{
	int a[10],i,j,t;
	for(i=0;i&lt;=9;i++){
		scanf("%d",&amp;a[i]);
	}
	for(j=0;j&lt;=9;j++){
		for(i=0;i&lt;=9-j;i++){
		if(a[i-1]&gt;a[i]){
		t=a[i-1];
		a[i-1]=a...]]></description><category></category></item></channel></rss>