#include
#include
int ganjil( int m)
{
int h;
h=m%2;
return h;
}
int main ()
{
int m,n;
cout<<"masukan bilangan ..";
cin>>m;
n=ganjil(m);
if (n!=0)
{
cout<<<" bilangan ganjil";
}
else
{
cout<<<" bilangan genap";
}
}
#include
int ganjil( int m)
{
int h;
h=m%2;
return h;
}
int main ()
{
int m,n;
cout<<"masukan bilangan ..";
cin>>m;
n=ganjil(m);
if (n!=0)
{
cout<
}
else
{
cout<
}
}
0 comments:
Post a Comment