Answer Posted / shahbaz
void main()
{
int a,b;
cout<<"Enter number to check is it Even or Odd";
cin>>a;
if(a>=0)
{
if(a%2==0)
{
cout<<"The number is Even ";
}
else
{
cout<<"Number is Odd ";
}
}
else
{
Cout<<"Number is Lesser than Zero 0";;
}
getch();
}
Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What are loops c?
How pointers are declared?
please send me the code for multiplying sparse matrix using c
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
What is the need of structure in c?
What does a function declared as pascal do differently?
Where static variables are stored in c?
What is static identifier?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Explain the Difference between the New and Malloc keyword.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is atoi and atof in c?
What is meant by errors and debugging?
Why pointers are used?
how logic is used