添加print1.c
This commit is contained in:
parent
6dcbcac092
commit
a25f190df3
16
chapter3/print1.c
Normal file
16
chapter3/print1.c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
int ten = 10;
|
||||||
|
int two = 2;
|
||||||
|
|
||||||
|
printf("Doing it right:");
|
||||||
|
printf("%d minus %d is %d \n", ten, 2, ten - two);
|
||||||
|
printf("Doing it wrong:");
|
||||||
|
// 遗漏两个参数
|
||||||
|
printf("%d mimus %d is %d\n", ten);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user