/*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
#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
No comments:
Post a Comment
Thank you for visit this site. You will get many programming news from here and learn programming very easily.