c++ big help

Helo1

Well-known member
  • Sep 7, 2014
    2,782
    295
    83
    TrustWorld
    maa code eka wada karanna naha ban


    c++ code karanna DEV++ software ekan:eek:



    #include <iostream>
    using namespace std;
    int main()
    {
    int choice;
    cout<<"please enter choice from the following list \n\n";
    cout<<"1-add\n2-subtrk\n3-maliply\n4-hack\n\n";
    cout<<"yout choice is :";
    cin>>choice;
    switch(choice)
    case 1:
    cout<<"your choice is add";
    barak
    case 2:
    cout<<"your choice is subtrk";
    barak
    case 3:
    cout<<"your choice is maliply";
    barak
    case 4:
    cout<<"your choice is hits";
    default:
    cout<<"unknown choice,try again"
    return 0;
    }
     

    thilina91

    Member
    May 28, 2008
    18,560
    858
    0
    New World, Grand Line
    Code:
    #include <iostream>
    
    using namespace std;
    int main()
    {
        int choice;
        
        cout << "Please enter choice from the following list \n\n";
        cout << "1-add\n2-substract\n3-muliply\n4-hack\n\n";
        cout << "yout choice is: ";
        cin >> choice;
        switch(choice) 
        {
            case 1:
                cout << "your choice is add";
                break;
            case 2:
                cout << "your choice is subtrk";
                break;
            case 3:
                cout << "your choice is maliply";
                break;
            case 4:
                cout << "your choice is hits";
                break;
            default:
                cout << "unknown choice,try again";
        }
        return 0;
    }

    Ingiris igena ganin utto. Keywords liyapiya hariyata. :P

    barak kiyanne mokadda? Thota bokak charge welada? :baffled::baffled::eek:
     
    • Like
    Reactions: Helo1

    saminda_1980

    Well-known member
  • Feb 23, 2018
    1,841
    139
    63
    Code:
    #include <iostream>
    
    using namespace std;
    int main()
    {
        int choice;
        
        cout << "Please enter choice from the following list \n\n";
        cout << "1-add\n2-substract\n3-muliply\n4-hack\n\n";
        cout << "yout choice is: ";
        cin >> choice;
        switch(choice) 
        {
            case 1:
                cout << "your choice is add";
                break;
            case 2:
                cout << "your choice is subtrk";
                break;
            case 3:
                cout << "your choice is maliply";
                break;
            case 4:
                cout << "your choice is hits";
                break;
            default:
                cout << "unknown choice,try again";
        }
        return 0;
    }

    Ingiris igena ganin utto. Keywords liyapiya hariyata. :P

    barak kiyanne mokadda? Thota bokak charge welada? :baffled::baffled::eek:
    :rolleyes::rolleyes:
     
    • Like
    Reactions: Helo1