আমি এই কোড তা যত বার সাবমিট দিতেছি তত বার Wrong Answer খাইতেছি।কিন্তু কেন যে বুজতে পারতেছি না।যদি কেও কষ্ট করে কোড টা দেখতেন। অগ্রিম Thanks. Problem Link: http://cpbook.subeen.com/2016/02/blog-post_22.html

    #include<iostream>

    using namespace std;

    int main()
    {
        int test;
        cin>>test;
        while(test--)
        {
            char str[1000];
            cin>>str;
            int len=0,i=0;
            while(str[i++]!=NULL)
            {
                len++;
            }
            char str2[1000];
            int j=0;
            for(i=len-1,j=0;i!=-1;i--,j++)
            {
                str2[j]=str[i];
            }
            str2[j]=NULL;
            cout<<str2<<endl;
        }
        return 0;
    }

asked 16 Mar '16, 12:09

Zahirul_Islam_Monir's gravatar image

Zahirul_Islam_Monir
2038

edited 16 Mar '16, 12:49


Input : Hello World

AC Output : dlroW olleH

কিন্তু আপনার কোড Output দিচ্ছে

olleH

dlroW

permanent link

answered 16 Mar '16, 13:17

menon's gravatar image

menon
4.7k334

Thnks vaia got it

(16 Mar '16, 14:50) Zahirul_Islam_Monir
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×131
×56
×3

question asked: 16 Mar '16, 12:09

question was seen: 681 times

last updated: 16 Mar '16, 14:50