Write a programme to find even numbers without using any
conditional statement?
Answer Posted / mathiyazhagan
#include<stdio.h>
main()
{
char res[2][5]={"Even","Odd"};
int n;
printf("Enter a number :");
scanf("%d",&n);
printf("the given no is = %s",res[n%2]);
}
| Is This Answer Correct ? | 51 Yes | 7 No |
Post New Answer View All Answers
What is the size of empty structure in c?
what is bit rate & baud rate? plz give wave forms
Is null equal to 0 in sql?
Explain the difference between call by value and call by reference in c language?
Explain the bubble sort algorithm.
How do you declare a variable that will hold string values?
What is pass by value in c?
Can you write a programmer for FACTORIAL using recursion?
Explain null pointer.
What do you mean by a local block?
Explain About fork()?
Why c is called a mid level programming language?
What are the types of c language?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain what is a pragma?