Showing posts with label Showing Integer type Leter Program.. Show all posts
Showing posts with label Showing Integer type Leter Program.. Show all posts

Jan 30, 2013

Showing Integer type Leter Program.

/*Showing Integer type Letter Program.*/

#include"stdio.h"
#include"conio.h"
void main()
{
clrscr();
int x;
long y;
x=789;
y=456987;
printf("%d",x);
printf("\n%10d",x);
printf("\n%05d",x);
printf("\n%-5d",x);
printf("\n%ld",y);
printf("\n%10ld",y);
printf("\\n%010ld",y);
getch();
}

....................................................Out Put............................................................

789
                      789   
00789
789
456987
            456987
0000456987

Popular Posts