Skip to main content

Posts

how to create basic linklist in c++

how to create basic linklist in c++--> code-> #include< iostream > using namespace std ; struct node { int data ; node * next ; node ( int data ){ //constructor this ->data = data ; next = NULL ; } }; node * creatlinklist (){ //we crate function for linklist int data ; node * head = NULL ; cin >> data ; if ( data!=- 1 ){ head = new node ( data ); } else { return head ; } node * tail = NULL ; tail = head ; cin >> data ; while ( data!=- 1 ){ node * temp = NULL ; temp = new node ( data ); tail->next = temp ; tail = temp ; cin >> data ; } return head ; } void print ( node * head ){ //print fucntion while ( head ){ cout &l

pattern printing in c/c++

pattern printing in c/c++- ganesha pattern printing- Given the number of rows and columns, print the corresponding swastika pattern using loops. Note :  The number of rows and columns should be same and an odd number. This will generate a perfect swastika pattern. Input : row = 7, column = 7 Output: * * * * * * * * * * * * * * * * * * * * * * * * * #include<iostream> using namespace std; int main() {     int n,star,space,i=0,row=1;     cin>>n;     star=(n/2)+1;     space=(n/2)-1;     for(row=1;row<=1;row++)     {         cout<<"*";         for(i=1;i<=space;i++)         {             cout<<" ";         }         for(i=1;i<=star;i++)         {             cout<<"*";         }         cout<<endl;     }     while(row<=(n/2))     {       cout<<"*";       for(i=1;i<=space;i++)       {           cout<<" ";

Important notice

Hey Regular readers of technical Keeda  . I am author of this blog and i want to inform you that i am busy for a month so i will not be able to write anything in this month. Sorry for that. We will meet with new blog post next month. Stay connected.

how to print number triangle in c language : pattern printing

how to print number  triangle in c language : pattern printing #include<stdio.h> int main() {     int i,j,k;     for(i=0;i<=5;i++)    {       for(j=0;j<=i;j++)     {         printf("%d",j);    }    printf("\n");    }    return 0; } output output doubt comment box mai puche ask doubt in comment box.

pattern printing in c language

print pattern in c language- #include<stdio.h> int main() { int i,j,k; for(i=0;i<=10;i++) { for(k=0;k<=i;k++) { printf("*"); } for(j=0;j<=20-2*i;j++) { printf(" "); } for(k=0;k<=i;k++) { printf("*"); } printf("\n"); } for(i=0;i<10;i++) {     for(j=0;j<10-i;j++)     { printf("*");     }     for(k=0;k<=2*i+2;k++)    { printf(" ");    }    for(int l=0;l<10-i;l++)    {        printf("*");    }    printf("\n"); } return 0; } output- iss program ka output output code samajh mai nhi aaya to comment box mai puch sakte hain. you can ask doubt in comment box

Chatbot क्या होते हैं what is chatbot ।। और chatbot काम कैसे करते हैं

Chatbot चैटबॉट क्या है ? चैटबॉट शब्द रोबॉट से मिलता जुलता शब्द  है तो आप अंदाजा लगा सकते हैं कि चैटबोट chatbot क्या होते हैं ?क्या चैटबॉट ऐसे रोबॉट होते हैं जिनका इस्तेमाल चैट chat करने के लिए किया जाता है ? दोस्तो आज के इस पोस्ट में हम इसी विषय मे बात करेंगे कि चैटबॉट क्या होता है और चैटबॉट काम कैसे करते हैं । तो स्वागत है आपका इस ब्लॉग में चलिए इस पोस्ट को साथ साथ पड़ते हैं । Chatbot kya hain || what is chatbot - दोस्तो  चैटबॉट शब्द अपने  आप में अपना अर्थ बताता है। Defination of chatbot -  chat-bot are smartly written computer program they are capable to carry out intelligent conversation live chat with live user. Chatbot चैटबॉट एक कंप्यूटर प्रोग्राम ( आर्टिफिशियल इंटेलिजेंस ) है जिसके जरिये एक सॉफ्टवेयर एक live user से बातचीत कर सकता है । उदाहरण के लिये मैं और  आप दैनिक जीवन में एंड्रॉयड फोन इस्तेमाल करते हैं जब हम सुबह सुबह  अपना फोन खोलते हैं तो हमारे सामने ही गूगल असिस्टेंट खुल जाता है Google Assistant भी गूगल का चैटबॉट ही  है।