TOPIC

Wrong Answer 100%

Igor Giamattey asked 1 year ago

Me ajudem por favor: O que está errado? Quando eu testo fica tudo certo.

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()
{
    int m;
    cin>>m;
    if(m==1)
        cout<<"January"<<endl;
        else
        if(m==2)
            cout<<"February"<<endl;
            else
            if(m==3)
                cout<<"March"<<endl;
                else
                if(m==4)
                    cout<<"April"<<endl;
                    else
                    if(m==5)
                        cout<<"May"<<endl;
                        else
                        if(m==6)
                            cout<<"June"<<endl;
                            else
                            if(m==7)
                                cout<<"July"<<endl;
                                else
                                if(m==8)
                                    cout<<"August"<<endl;
                                    else
                                    if(m==9)
                                        cout<<"September"<<endl;
                                        else
                                        if(m==10)
                                            cout<<"October"<<endl;
                                            else
                                            if(m==11)
                                                cout<<"November"<<endl;
                                                else
                                                if(m==12)
                                                    cout<<"December"<<endl;
    return 0;
}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.