Do math calculation inside printf() function - C Language Basics

C examples for Language Basics:printf

Description

Do math calculation inside printf() function

Demo Code

#include <stdio.h>
int main()/*  ww w  .  j a  v a  2 s .co  m*/
{
   printf("for %d years.\n",65-19);
   printf("for %d years.\n",969-65);
   return(0);
}

Result


Related Tutorials