自学第八十天

//#include<stdio.h>
//#define praise "you are an extraordinary."
//int main()
//{
//	char name[40];
//	printf("what's your name?\n");
//	scanf("%s", &name);
//	printf("hello, %s.%s\n", name, praise);
//	return 0;
//}

//#include<stdio.h>
//#include<string.h>
//#define PRAISE "You are an extraordinary being."
//int main()
//{
//	char name[40];
//	printf("What'your name?\n");
//	scanf("%s", &name);
//	printf("Hello, %s. %s\n", name, PRAISE);
//	printf("Your name of %zd letters occupies %zd memory cells.\n", strlen(name), sizeof(name));
//	printf("The phrase of praise has %zd letters", strlen(PRAISE));
//	printf("and occupies %zd memory cells.\n", sizeof(PRAISE));
//	return 0;
//}

//#include<stdio.h>
//#define PI 3.1415926
//int main()
//{
//	float area, circum, radius;
//	printf("What's is the radius of your pizza?\n");
//	scanf("%f", &radius);
//	area = PI * radius * radius;
//	circum = 2.0 * PI * radius;
//	printf("Your basic pizza parameter are as follows:\n");
//	printf("circumference=%1.2f,area=%1.2f\n", circum, area);
//	return 0;
//}


猜你喜欢

转载自blog.51cto.com/15019599/2629446