To output values or print text in C, you can use the printf()
function:
You can use as many printf()
functions as you want. However, note that it does not insert a new line at the end of the output:
#include <stdio.h>
int main() {
printf("Hello World!");
printf("I am learning C.");
return 0;
}
Try it Yourself »
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!