Posts

Showing posts from November, 2022

Implementation of Binary Search Tree using C Programming Language

#include <stdio.h> #include <conio.h> #include <alloc.h> struct node {     int data ;     struct node * left ;     struct node * right ;     }* root = NULL ; void bstinsert ( int d , struct node * r ){     struct node * temp ;     if ( r == NULL ){         temp =( struct node * ) malloc ( sizeof (struct node ));         temp -> data = d ;         temp -> left = NULL ;         temp -> right = NULL ;         root = temp ;         }     else if ( d < r -> data ){         if ( r -> left == NULL ){             struct node * temp =( struct node * ) malloc ( sizeof (struct node ));             temp -> data = d ;             temp -> left = NUL...

Print Pattern 1 12 123 1234 ....... using C programming language

Image
 Print Pattern 1 12 123 1234 ....... using C Programming Language #include <stdio.h> void main() {     int sum=0,i;     for(i=1;i<10;i++){         sum=(sum*10)+i;         printf("%d \n",sum);     } } OUTPUT OF THE PROGRAM 

Print Pattern 1 11 111 1111 ....... using C programming language

Image
 PROGRAM TO PRINT PATTERN 1 11 111 1111 ...... USING C PROGRAMMING LANGUAGE #include <stdio.h> void main() {     int sum=0,i;     for(i=1;i<10;i++){         sum=(sum*10)+1;         printf("%d \t",sum);     } } OUTPUT OF THE PROGRAM 

Student ID in HTML

Image
PROGRAM FOR CREATING ID CARD USING HTML <html> <head><title>Student Id</title></head> <body> <center> <table border=1 height=100% width=20%> <tr height="20"> <td colspan=3><img src="img.png" height="20%"  width="100%"></img></td> </tr> <tr> <th colspan=3><center><font size="2px">------RAWATPUR(NEAR IIIT),PRAYAGRAJ------</font></center></th> </tr> <tr> <td>welcome</td> <td rowspan=3><img src="img.png"></img></td> <td>welcome</td> </tr> <tr> <th bgcolor="red">B</th> <td></td> </tr> <tr> <td>welcome</td> <td>welcome</td> </tr> <tr><th colspan="3"> Student ID : UU211510016</th></tr> <tr><th colspan="3"> Stu...