Output formatted ramdom integer : Formatted Output Int « Console « C / ANSI-C






Output formatted ramdom integer

Output formatted ramdom integer
  
#include <stdio.h>
#include <stdlib.h>

int main(void)
{
  int i;

  for( i = 0; i < 10; i++)
    printf("%10d %10d %10d\n", rand(), rand(), rand());

  return 0;
}


           
       








Related examples in the same category

1.Integer output variations
2.Variations on a single integerVariations on a single integer
3.Output justifyOutput justify
4. Print formatted data to stdout: how to use printf Print formatted data to stdout: how to use printf
5.Formatted output: int, float and string