Print a int with a string : Console Output Int « Console « C / ANSI-C






Print a int with a string

#include <stdio.h>

int main(void)
{
  int num;

  num = 100;
  printf("%d is the value of num", num);

  return 0;
}
           
       








Related examples in the same category

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