C - Your First Program

Description

Your First Program

/*Displaying a Quotation */
#include <stdio.h>

int main(void)
{
  printf("hi from book2s.com!");
  return 0;
}

If you type it in accurately, compile it, and run it, you should get the following output:

hi from book2s.com!

Do simple calculation.

Demo

#include <stdio.h>

int main()//from ww  w  .  j av  a  2  s.c o  m
{
    printf("The total is %d\n",16+17);
    return(0);
}

Result

Related Topics

Quiz