C examples for Language Basics:Hello World
Example of C Source Code to read and display int value
#include <stdio.h> int main(void) { int dogs; // w w w . java 2 s . co m printf("How many dogs do you have?\n"); scanf("%d", &dogs); printf("So you have %d dog(s)!\n", dogs); return 0; }