Se7enLei
China
--------------------------------
Process exited after 0.2216 seconds with return value 0
请按任意键继续...
/*习题3:编写一个程序,把您的年龄转换成天数并显示二者的值。*/#include<stdio.h>intmain(void){int years,days;
years=24;
days=365*24;printf("My age is %d years old.\n",years);printf("Ddys is %d.\n",days);return0;}
My age is 24 years old.
Ddys is 8760.--------------------------------
Process exited after 0.1968 seconds with return value 0
请按任意键继续...
/*习题4:*/#include<stdio.h>voida(void);voidb(void);intmain(void){a();a();a();b();return0;}voida(void){printf("For he's a jolly good fellow!\n");}voidb(void){printf("Which nobody can deny!\n");}
For he's a jolly good fellow!
For he's a jolly good fellow!
For he's a jolly good fellow!
Which nobody can deny!--------------------------------
Process exited after 0.02982 seconds with return value 0
请按任意键继续...