Professional Documents
Culture Documents
#include<stdio.h>
#include<conio.h>
int generate(void);
int fun(int);
void main()
{
int i,a,r;
clrscr();
gotoxy(30,12);
printf("Welcome You!
IN THE JARGON OF A NUMBER..");
printf("
");
printf(" But please be honest while entering the answer...");
printf("
So try again...");
}
else
{
gotoxy(30,11);
printf("Your number is %d",r);
printf("
");
printf(" Thank You!
");
getch();
}
int generate()
{
int a,i,j,f,num[6],n,r=0;
char ch[6];
for(j=0;j<=5;j++)
{
gotoxy(1,7);
f=fun(j);
for(i=1;i<=63;i++)
{
//f=fun(j);
//printf("%d",f);
a=i & f;
if(a==f)
//gotoxy(5,10);
printf(" %d",i);
}
printf("
Let me remind you if the number is present then");
printf(" press P otherwise press N");
printf("