自学第八十天
作者:互联网
//#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; //}
标签:name,area,十天,第八,zd,radius,printf,自学,include 来源: https://blog.51cto.com/15019599/2629446