自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(84)
  • 收藏
  • 关注

转载 dsaljkfgklj;asdfkjlsa

#include<stdio.h>int main(){ int count,i,num; double grade,total,average; total=0; num=0; count=0; scanf("%lf",&grade); for(i=0;i<=19...

2013-12-12 09:55:00 451

转载 aaaaaaaaa

#include<stdio.h>struct student{ char name[4]; double age; }; int main(void) { int i,index,j,n; struct student studengts[4],temp; for(i=0;i<n-1;i...

2013-11-21 09:56:00 154

转载 实验 7 综合练习 第三题

#include<stdio.h>#include<math.h>int main(){ double x,y; printf("Enter x:"); scanf("%lf",&x); if(x<-2){ y=x*x; } else if(x>2...

2013-10-31 09:53:00 454

转载 实验 7 综合练习 第一题

#include <stdio.h>void main( ){ int i, b=1; double s;/*当i=1时 b=1,i=1,s=s+1,所以s初始值是0 */ s=0; for(i=1;i<=15;i++) { s=s+double(i)/double(b); /*因为得到...

2013-10-31 09:51:00 247

转载 实验 7 综合练习 第四题

#include<stdio.h>int main(){ int m=0,n=0,q=0,i,grade[10]; printf("Enter grades:"); for(i=0;i<10;i++) scanf("%d",&grade[i]); for(i=0;i<10;i++){...

2013-10-31 09:51:00 568

转载 实验 7 综合练习 第二题

#include <stdio.h>void main(){ int i, j, t, a[10]; printf("Enter 10 integers: "); for(i=0;i<10; i++) scanf("%d",&a[i]);/*将数据存入数组*/ for(i=1; i<10...

2013-10-31 09:49:00 663

转载 实验6 1

输入n个整数,将它们存入数组a中。输出最大值和它所对应的下标。#include<stdio.h>int main(void){ int col,i,j,row; int a[5][1]; /*将输入的数存入二维组数*/ printf("Enter 5 integers:\n"); for(i=0;i&...

2013-10-28 09:14:00 96

转载 实验 5-2

#include<stdio.h>int main(){ int m,n; float result,sum; float fact(int n); printf("enter m and n:"); scanf("%d%d",&m,&n); sum=fact(m-n); res...

2013-10-28 08:25:00 354

转载 实验5-1

#include<stdio.h>double fact(int n);int main(void){ int i; double sum; sum=0; for(i=1;i<=100;i++) sum=sum+fact(i); printf("1!+2!+...+100!=%e\n",...

2013-10-21 09:31:00 136

转载 3-6

#include<stdio.h>int main(void){ int i,x; double price; for(i=1;i<=5;i++){ printf("[1]apples\n"); printf("[2]pears\n"); printf("[3]o...

2013-10-21 00:24:00 92

转载 3-5

#include<stdio.h>int main(void){ char op; printf("输入五级制成绩:"); scanf("%c",&op); switch(op){ case'A':printf("grade=90-100"); break; ...

2013-10-21 00:23:00 80

转载 3-4

#include<stdio.h>int main(void){ int i,n,year; printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i++){ printf("Enter year:"); scanf("%d",&a...

2013-10-21 00:23:00 75

转载 3-1

#include<stdio.h>int main(void){ int x,y; printf("输入x:"); scanf("%d",&x); if(x<0){ y=-1; } else if(x==0){ y=0; } els...

2013-10-21 00:20:00 59

转载 3-3

#include<stdio.h>int main(void){ int digit,space,enter,letter,other; char ch; int i; digit=space=enter=letter=other=0; printf("Enter 15 characters:"); fo...

2013-10-21 00:20:00 87

转载 习题二 8

#include <stdio.h> int main(void) { int i,n; double x; double fact(int n); scanf ("%d", &n); x=0; for(i=0;i<=n;i++){ x...

2013-10-21 00:19:00 193

转载 3-2

#include<stdio.h>int main (void){ int count,i,n; double grade,total; printf("Enter n:"); scanf("%d",&n); total=0; count=0; for(i=1;i<=n;i++...

2013-10-21 00:19:00 74

转载 习题二 3

#include<stdio.h>int main(void){ int n,i; double x,y; y=1; printf("输入n,x:"); scanf("%d%Lf",&n,&x); for(i=1;i<=n;i++){ y=y*x; }...

2013-10-21 00:17:00 138

转载 习题二 5

#include<stdio.h>int main(void){ int i,n,numerator,denominator,flag; double sum,item; printf("Enter n:"); scanf("%d",&n); numerator=1; denominator=...

2013-10-21 00:17:00 104

转载 习题二 4

#include<stdio.h>int main(void){ int m,n; double i,y; y=1; printf("输入m,n的值:"); scanf("%d%d",&m,&n); for(i=m;i<=n;i++){ y=y+(i*i+1/i);...

2013-10-21 00:16:00 165

转载 习题二 6

#include <stdio.h> #include <math.h> int main(void) { int year; double loan,money,my,rate; scanf("%Lf",&loan); scanf("%Lf",&rate); printf...

2013-10-21 00:16:00 117

转载 习题二 7

#include<stdio.h>#include<math.h>int main(void){ int n,i,power; double product; printf("Enter n:"); scanf("%d",&n); product=0; for(i=1;i&lt...

2013-10-21 00:15:00 153

转载 习题二 1

#include<stdio.h>int main(void){ int num1,num2,a,b,c; double d,e; printf("输入num1,num2:"); scanf("%d%d",&num1,&num2); a=num1+num2; b=num1-num2; ...

2013-10-21 00:12:00 95

转载 简单的分支与循环结构 2 第一题

#include<stdio.h>int main(void){ int i,n; double r,h,v; double cylinder(double r,double h); printf("Enter n:"); scanf("%d",&n); for(i=1;i<=n;i...

2013-10-17 09:25:00 60

转载 实验三 第二题

#include<stdio.h>int main(void){ double R,H,V; printf("Enter R and H:"); scanf("%lf%lf",&R,&H); if(R>0&&H>0){ V=3.1415926*R*R*...

2013-10-14 09:53:00 270

转载 实验三 第一题

#include<stdio.h>int main(void){ double R,S; printf("Enter R:"); scanf("%lf",&R); if(R>0){ S=R*3.14; printf("S=%.2f\n",S); } e...

2013-10-14 09:17:00 332

转载 大心得。。。

敲了很多编程 发现 敲的越多错的越少。 我想这是因为 敲的多了 变得更加熟悉,哪里要注意 哪里会打错。而且敲的速度也变快很多。但是我留下最大的遗憾就是 没有记住哪些函数是干嘛的 做什么样的程序改敲什么转载于:https://www.cnblogs.com/jlg0322/p/3356440.html...

2013-10-08 01:30:00 42

转载 7-11

#include<stdio.h>int main(void){ int i,n,m; char s[10]; printf("Enter a string:"); i=0; while((s[i]=getchar())!='\n') i++; s[i]='\0'; for(n...

2013-10-08 01:24:00 76

转载 7-8

#include<stdio.h>int main(void){ int i,j; int a[3][2]; for(i=0;i<3;i++) for(j=0;j<2;j++) a[i][j]=i+j; for(i=0;i<3;i++){ ...

2013-10-08 01:03:00 70

转载 7-9

#include<stdio.h>int main(void){ int i,j,n,temp; int a[6][6]; printf("Enter n:"); scanf("%d",&n); for(i=0;i<n;i++) for(j=0;j<n;j++) ...

2013-10-08 01:03:00 59

转载 7-7

#include<stdio.h>int main(void){ int col,i,j,row; int a[3][2]; printf("Enter 6 integers:\n"); for(i=0;i<3;i++) for(j=0;j<2;j++) scanf("...

2013-10-08 01:01:00 64

转载 7-6

#include<stdio.h>int main(void){ int a[10]={1,2,3,4,5,6,7,8,9,10}; int low,high,mid,n=10,x; printf("Enter x: "); scanf("%d",&x); low=0;high=n-1; whil...

2013-10-08 00:42:00 88

转载 7-5

#include<stdio.h>int main(void){ int i,index,k,n,temp; int a[10]; printf("Enter n:"); scanf("%d",&n); printf("Enter %d integers:",n); for(i=0;i<n;...

2013-10-08 00:37:00 71

转载 7-4

#include<stdio.h>int main(void){ int i; int fib[10]={1,1}; for(i=2;i<10;i++) fib[i]=fib[i-1]+fib[i-2]; for(i=0;i<10;i++){ printf("%6d",...

2013-10-08 00:32:00 63

转载 7-2

#include<stdio.h>int main(void){ int i; int fib[10]={1,1}; for(i=2;i<10;i++) fib[i]=fib[i-1]+fib[i-2]; for(i=0;i<10;i++){ printf("%6d",...

2013-10-08 00:22:00 131

转载 7-3

#include<stdio.h>int main(void){ int i,flag,x; int a[5]; printf("Enter 5 integers:"); for(i=0;i<5;i++) scanf("%d",&a[i]); printf("Enter x:")...

2013-10-08 00:20:00 87

转载 7-1

#include<stdio.h>int main(void){ int count[9]; int i,response; for(i=1;i<=8;i++); count[i]=0; for(i=1;i<=10;i++){ printf("input your respons...

2013-10-08 00:19:00 84

转载 6-5

#include<stdio.h>int main(void){ char ch; printf("input characters:"); ch=getchar(); while(ch!='\n'){ if(ch>='A'&&ch<='Z') ch=c...

2013-10-08 00:17:00 986

转载 6-3

#include<stdio.h>int main(void){ char ch='w'; int a=2,b=0,c=0; float x=3.0; printf("%d",a&&b); printf("%d",a||b&&c); printf("%d",!a&&...

2013-10-08 00:07:00 107

转载 6-2

#include<stdio.h>int main(void){ char ch='w'; int a=2,b=3,c=1,d,x=10; printf("%d",a>b==c); printf("%d",d=a>b); printf("%d",ch>'a'+1); printf("%d...

2013-10-08 00:01:00 96

转载 6-1

#include<stdio.h>int main(void){ int i; char ch_lower,ch_upper; for(i=1;i<=6;i++) { scanf("%c",&ch_lower); if(ch_lower>='a'&&ch...

2013-10-07 23:55:00 89

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除