Skip to main content

Posts

how to check word is palindrome or not using linklist in c++

how to check word is palindrome or not using linklist in c++-> #include<iostream> using namespace std; struct node{     char data;     node * next=NULL;         node(char data){         this->data=data;         next=NULL;     } }; //node* createlinklist(int n); node* createlinklist(int  n){         char data;     cin>>data;   node * head=NULL;   if(n==0){           return head;   }   head=new node (data);   node * tail=head;   cin>>data;   while(n>1){       node * temp=NULL;       temp=new node (data);         tail->next=temp;         tail=temp;         cin>>data;         n--;           }   return head;     } bool palindrome(node *&head,node * temp){     if(temp==NULL&&head==NULL){         return false;     }     if(temp==NULL){         return true;             }    bool k= palindrome(head,temp->next);    if(k==false){        return false;    }     if(temp->data==head->data){  

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 भी गूगल का चैटबॉट ही  है।

pattern printing in c language using loop

pattern printing in c language using loop Write a C program to print the given number pattern using loop. How to print the given number pattern using loop in C programming. Logic to print the given number pattern using C program. Example Input Input N: 5 Output 1 1 12 21 123 321 1234 4321 1234554321 solution for this pattern printing  problem- #include<stdio.h> int main() {     int i,j,k;     for(i=0;i<=5;i++)    {       for(j=0;j<=i;j++)     {         printf("%d",j);    } for(k=0;k<=10-(2*i);k++) {     printf(" "); } int l=i; for(l=i;l>=0;l--) {     printf("%d",l);     }    printf("\n");    }    return 0; } output- output doubt comment box mai puche ask doubt in comment box.

कक्षा 12वीं ( एक सफर अतीत की ओर )

कक्षा 12वीं ( एक सफर अतीत की ओर) आज मैं जब अपने  दोस्तों के साथ  कॉलेज  के पास   चाय की टपरी पर बैठ कर चाय पी रहा था तो पहली बार अहसास हुआ कि शायद टाइम मशीन बन गयी है । अचानक सनसनाती हुई हवा का झोंका आया और मुझे टाइम मशीन में बिठा कर  अतीत के दबे हुए  कोने पर पटक दिया । ‌   इस टाइम मशीन पर रोज हज़ारो लोग सफर करते हैं और मुझे इस बात की खुशी है कि मैं अतीत के इस सफर का इकलौता यात्रि नहीं हूं । ‌ ‌ खैर छोड़िये अतीत की ओर चल रही यह रेलगाड़ी  मुझे वक्त में 2 साल पहले  ले गयी और इस रेलगाड़ी ने मुझे ढैला और रविन्द्र के कमरे के पास उतार दिया जहाँ  हम तीनों मैगी खा रहे थे और मैगी के साथ साथ विभिन्न विषयों पर चर्चाएं हो रही थी कभी राजनीति पर चर्चा तो कभी भगवान के बनाये इस ब्रह्मांड पर और बीच में कभी कभी JEE main जैसे गम्भीर विषय भी   चर्चा में अपना स्थान बना रहे थे । ‌ ‌मैगी खाने के बाद हम तीनों ने सोचा कि अतीत के सफर को आगे बढ़ाया जाए और हम 2270 नम्बर वाली गाड़ी से  आगे का सफर तय करने लगे । ‌ ‌यह गाड़ी हमें विवेकानंद इंटर कॉलेज अल्मोड़ा  12th B की 70 बच्चों वाली  कक्षा में ले ग