#include stdio.h int main(void) { int dogs; /*from w w w.yiibai . com*/printf(How many dogs do you have?\\n);
编程学习网为您整理以下代码实例,主要实现:读取和显示int值的C源代码示例,希望可以帮到各位朋友。
#include <stdio.h>
int main(voID)
{
int dogs; /*from w w w .y iib ai . c om*/
printf("How many dogs do you have?\n");
scanf("%d", &dogs);
printf("So you have %d dog(s)!\n", dogs);
return 0;
}