Skip to main content

Posts

Showing posts from April, 2020

Unique password generator program

Generate Unique password program   #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { int i,password,len; srand((unsigned int)time(NULL)); printf("\n\n\n\t\t\t ENTER THE PASSWORD LENGHT AND MUST BE GREATER THAN 5 : "); scanf("%d",&len); if(len>=5&&len<=20) { for(i=0;i<len;i++) { int k=rand()%128; if((k>=48&&k<=57)||(k>=65&&k<=90)||(k>=97&&k<=122)||(k>=35&&k<=37)||k==64) { printf("%c",k); } else { i--; } } printf("\n"); } else { printf("\n\t\t\t LENGTH SHOULD BE GREATER THAN 5 and equal or less than 20 !!! "); } return 0; } Video link : https://youtu.be/weQYMCiEIds

Program to find the ASCII value in C langauge

C program to find ASCII value #include<stdio.h> #include<string.h> main() {      int i,temp,x,y=1,binary=0;      char str[1000];      printf("\n\n\t\t\t ENTER THE SENTENCE : ");      gets(str);      i=0;      printf("\n\n\n\t\t\t ENCRYPTED ASCII CODE : "); while(str[i]!='\0')      {      printf(" %d",str[i]);      i++;      }      return 0; } Video link : https://youtu.be/2SfBV_nbehA

How to create Loading Animation in C language

 Make loading animation Using C programming language #include<stdio.h> #include<conio.h> #include<graphics.h> // header file for graphics functions #include<dos.h> int main() {        int gd=DETECT;         int gm,i,j,k,midx,midy; //variable to be used      initgraph(&gd,&gm,"C:\\Turboc3\\BGI"); //initializing and setting the path of graphics file      midx=getmaxx()/2; //getting center of x-axis      midy=getmaxy()/2; //getting center of y-axis for(j=1;j<10;j++)      {      for(i=2,k=340;i<340,k>2;i=i+10,k=k-10)      {      setcolor(j);      arc(midx,midy,0+i,40+i,40); // creating the upper arc      setcolor(j+1);      arc(midx,midy,50+k,80+k,40); // creating the lower arc  ...