Output int with %i - C Language Basics

C examples for Language Basics:printf

Description

Output int with %i

Demo Code

#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);
}

Result


Related Tutorials