练习

练习 1:用两个 printf 语句输出名字和地址

#include <stdio.h>                  

int main(void) 
{                                                      
	printf("小张\n"); 
	printf("北京海淀"); 
	return 0;                        
}Code language: PHP (php)

练习 2:用一个 printf 语句输出名字和地址

#include <stdio.h>                  

int main(void) 
{                                                      
	printf("小张\n北京海淀"); 
	return 0;                        
}Code language: PHP (php)

练习 3:输出带引号的文本

#include <stdio.h>                  

int main(void) 
{                                                      
	printf("\"It's freezing in here,\" he said coldly."); 
	return 0;                        
}Code language: PHP (php)

输出结果

"It's freezing in here," he said coldly.Code language: JavaScript (javascript)

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注