C++ Menentukan Nama Bulan

#include <iostream>
#include <string>

using namespace std;
int main()
{
string raptor_prompt_variable_zzyz;
float bulan;
float bulan_ke;

raptor_prompt_variable_zzyz =”Masukan Bulan Ke : “;
cout << raptor_prompt_variable_zzyz << endl;
cin >> bulan_ke;
if (bulan_ke==1)
{
bulan =”januari”;
}
else
{
if (bulan_ke==2)
{
bulan =”februari”;
}
else
{
if (bulan_ke==3)
{
bulan =”maret”;
}
else
{
if (bulan_ke==4)
{
bulan =”april”;
}
else
{
if (bulan_ke==5)
{
bulan =”mei”;
}
else
{
if (bulan_ke==6)
{
bulan =”juni”;
}
else
{
if (bulan_ke==7)
{
bulan =”juli”;
}
else
{
if (bulan_ke==8)
{
bulan =”agustus”;
}
else
{
if (bulan_ke==9)
{
bulan =”september”;
}
else
{
if (bulan_ke==10)
{
bulan =”oktober”;
}
else
{
if (bulan_ke==11)
{
bulan =”november”;
}
else
{
if (bulan_ke==12)
{
bulan =”desember”;
}
else
{
bulan =”sorii dap setahun cuma ada 12 bulan”;
}
}
}
}
}
}
}
}
}
}
}
}

system(“PAUSE”);
return EXIT_SUCCESS;
}

 

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s