自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 C Primer Plus第六版编程练习6.3

#include <stdio.h> int main(void) { // insert code here… /for(int i=0;i<6;i++) { for(int a=‘F’, b=6-i;b<=6;b++)//需要让a改变,行列之间通过b=6-i联系 printf("%c",a–); printf("\n"); }/ for(int i=0;i<6;i...

2020-04-06 21:35:11 112

原创 C Primer Plus第六版编程练习6.2

#include <stdio.h> int main(void) { // insert code here… const int ROWS=5; const int CHARS=5; int row; int ch; for(row=0;row<ROWS;row++) { for(ch=5-row;ch<=CHARS;ch++) printf("%c",’$’); pr...

2020-04-05 21:12:46 116

原创 C Primer Plus第六版编程练习6.1

#include <stdio.h> int main(void) { // insert code here… char actors[26]; for(int i=0,n=‘a’;i<26;i++,n++) actors[i]=n; for(int i=0;i<26;i++) printf("%c\n",actors[i]); return 0; }

2020-04-04 22:22:52 107

原创 C Primer Plus第六版编程练习5.9

#include <stdio.h> void Temperatures(float n); int main() { double n,flag; printf(“Enter the temperature:\n”); flag=scanf("%lf",&n); while(flag==1) { Temperatures(n); printf(“Enter the tempe...

2020-04-03 20:35:23 153

原创 C Primer Plus第六版编程练习5.8

#include <stdio.h> int main() { int m,n; printf(“This program computes moduli.\n”); printf(“Enter an integer to serve as the second operand:\n”); scanf("%d",&m); printf(“Now enter the first ...

2020-03-12 18:52:28 136

原创 C Primer Plus第六版编程练习5.7

5.7 #include <stdio.h> double cube(double a); int main() { double n,m; printf(“Enter the number:\n”); scanf("%lf",&n); while(n>=0) { m=cube(n); printf("%f\n",m); printf(“Enter the number:...

2020-03-03 21:07:49 163

原创 C Primer Plus第六版编程练习5.6

新手练习 5.6 #include <stdio.h> int main(void) { int count,sum,day; sum=0; printf(“Please enter the day(n<=0 to quit):\n”); scanf("%d",&day); while(day>0) { for(count=1;count<=day;count...

2020-03-02 22:04:47 125

原创 C Primer Plus第六版编程练习5.5

新手练习,欢迎指正5.5 #include <stdio.h> int main(void) { int count,sum,day; count=0; sum=0; printf(“Please enter the day:\n”); scanf("%d",&day); while(count++<day) sum=sum+count; printf(“sun = %d...

2020-03-02 10:43:03 91

原创 C Primer Plus第六版编程练习5.4

新手欢迎指正 5.4 #include <stdio.h> #define FEET 2.54 #define INCH 30.48 int main(void) { float h=0,inch=0; int feet=0; printf(“Please enter a height in centimeters(<=0 to quit):\n”); scanf("%f",&a...

2020-02-29 11:17:08 163

原创 C Primer Plus第六版编程练习5.3

新手编程练习,欢迎大家指正 5.3 #include <stdio.h> int main(void) { const int A=7; int n,b,c; printf(“Please enter day:\n”); scanf("%d",&n); while(n>0) { b=n/A; c=n%A; printf("%d days are %d weeks,%d d...

2020-02-29 11:13:08 99

原创 C Primer Plus第六版编程练习5.2

新手编程练习,欢迎大家指正 5.2 #include <stdio.h> int main(void) { int n,i; printf(“Please enter num\n”); scanf("%d",&n); // for(i=0;i<=10;i++) // printf("%d\t",n++); i=n+10; while(n<=i) { print...

2020-02-29 11:02:53 88

原创 c primer plus第六版编程练习5.1

新手练习,有错误欢迎指正,大家一起加油呀 5.1 #include <stdio.h> #define A 60 int main(void) { int min=0, a,b; printf(“Please the number:\n”); scanf("%d",&min); while(min>0) { a=min/A; b=min%A; printf("%d小时...

2020-02-29 10:55:05 97

空空如也

空空如也

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

TA关注的人

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