Output int value : Console Output Int « Console « C / ANSI-C






Output int value

  
#include <stdio.h>

int main(void)
{
  int num;

  num = 100;
  printf("num =  %d", num);

  return 0;
}

           
       








Related examples in the same category

1.Print a int with a string
2.Do calculation inside printf
3.Output int value to console
4.Read and write int value in console