C Language
#include<stdio.h> #include<conio.h> void main( ) { int a; clrscr( ); a = 981; printf ("a = %d inches \n", a); printf ("a = %6d inches \n", a); printf ("a = % - 6d inches \n", a); printf ("a = % 06d inches", a); getch( ); } /*OUTPUT*/