/* program to create number table */
void main()
{
int num,num1,i=1;
clrscr();
gotoxy(10,4);
printf("°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²");
gotoxy(10,5);
printf(" NUMBER TABLE GENERATOR ");
gotoxy(10,6);
printf("Author : He-Man Date :22 June 2005 ");
gotoxy(10,7);
printf("°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²");
gotoxy(10,10);
printf(" Enter any number:");
scanf("%d",&num);
num1=num;
while(num1<=num*10)
{
gotoxy(10,10+i);
printf("%d",num1);
num1=num+num1;
i++;
}
getch();
}
void main()
{
int num,num1,i=1;
clrscr();
gotoxy(10,4);
printf("°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²");
gotoxy(10,5);
printf(" NUMBER TABLE GENERATOR ");
gotoxy(10,6);
printf("Author : He-Man Date :22 June 2005 ");
gotoxy(10,7);
printf("°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²°±²");
gotoxy(10,10);
printf(" Enter any number:");
scanf("%d",&num);
num1=num;
while(num1<=num*10)
{
gotoxy(10,10+i);
printf("%d",num1);
num1=num+num1;
i++;
}
getch();
}
No comments:
Post a Comment