C examples for Language Basics:printf
Output int with %i
#include <stdio.h> int main()//from w w w .java 2 s . com { printf("Now, the speed limit here is %i.\n",55); printf("But I clocked you doin' %i.\n",55+15); printf("Didn't you see that %i MPH sign?\n",55); return(0); }