#include <iostream>
using namespace std;

int main() 
{
    int pok;
    int H,A,B,C,D,S;
    int total;
    int typeS;
    int type[18] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
    cin >> pok;
    
    //ポケモンコード(1:ガブリアス 2:ミミッキュ)
    switch(pok)
        {
            case 1:
                typeS = 1;
            if(typeS == 1)
            {
                type[0] += 0;
                type[1] += 0;
                type[2] += 0;
                type[3] += 0;
                type[4] += 0;
                type[5] += 0;
                type[6] += 1;
                type[7] += 0;
                type[8] += 0;
                type[9] += 0;
                type[10] += 0;
                type[11] += 0;
                type[12] += 0;
                type[13] += 5;
                type[14] += 0;
                type[15] += 0;
                type[16] += 0;
                type[17] += 0;
            }
                H = 108;
                A = 130;
                B = 95;
                C = 80;
                D = 85;
                S = 102;
                total = H + A + B + C + D + S;
                
                cout << "ガブリアス" << endl << "ドラゴン じめん" << endl;
                cout << " HP :" << H << endl << "攻撃:" << A << endl << "防御:" << B << endl
                 << "特攻:" << C << endl << "特防:" << D << endl << "素早:" << S << endl
                 << "平均/合計:" << (float)total / 6 << "/" << total << endl;
                cout << "効果ばつぐん" << endl;
            if(type[6] == 2)
            {
                cout << "かくとう";
            }
            break;
        }

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: