কম্পিউটার

শুভ জন্মদিন প্রিন্ট করার জন্য C++ প্রোগ্রাম


শুভ জন্মদিন প্রিন্ট করার জন্য এটি একটি C++ প্রোগ্রাম।

অ্যালগরিদম

Begin
   Take a str1 which takes the next character of our desired ouput like for H it will be G.
   Assign the string to a pointer p.
   Make a while loop till *p != NULL.
      Go next character of the string print it and after that go the nextposition of string.
   Print the result.
End

উদাহরণ

#include<iostream>
using namespace std;
main(){
   char str[]="G`ooxAhqsgc`x",*p;
   p=str;
   while(*p!='\0')
      ++*p++;
   cout<<str;
}

আউটপুট

HappyBirthday

  1. C++ প্রোগ্রাম Z আকারে ম্যাট্রিক্স প্রিন্ট করতে?

  2. শুভ জন্মদিন প্রিন্ট করার জন্য C++ প্রোগ্রাম

  3. রোলিং হ্যাশ বাস্তবায়নের জন্য C++ প্রোগ্রাম

  4. C++ এ স্ট্রিং এর প্রতিটি অক্ষর লুপ করার জন্য প্রোগ্রাম