Sintak Bilangan Ganjil atau Genap di C++

#include
#include

using namespace std;

typedef int larik[100];
void input(larik &a, int n)
{
for(int i=0;i> a[i];
}
}

int main()
{
int n,pilih,cek,b=0; larik a; char c='y';

cout<<"Masukkan jumlah data";
cin>>n;

input(a,n);
while(c=='y')
{
cout<<"Menu\n";
cout<<"1.ganjil\n";
cout<<"2.genap\n";
cout<<"pilih :";
cin>>pilih;
switch(pilih)
{
case 1: for(int i=0;i>c;
system("cls");
}
return 0;

}

Comments

Popular posts from this blog

SNMPv1-(Simple Network Management Protocol)

Tutorial Menabung Saham

Konversi Desimal ke Heksadesimal -Turbo Assembler