Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answers were Sorted based on User's Feedback
Answer / kiran
main()
{
int n;
printf("enter the number");
scanf("%d",&n);
n%2==0?(printf("given number is even");):(printf("given
number is odd"););
Is This Answer Correct ? | 8 Yes | 3 No |
#include<stdio.h>
int main()
{
int i;
printf("enter a number \n");
scanf("%d",i);
float f=i%2;
f==0 ? printf("given number is even") : printf("given
number is odd");
return 0;
}
Is This Answer Correct ? | 3 Yes | 1 No |
Whether there can be main inside another main?If so how does it work?
what is disadvantage of pointer in C
What is the purpose of the statement: strcat (S2, S1)?
What is table lookup in c?
Why C language is a procedural language?
Why & is used in c?
why TCS selected more student in the software field from all institution.
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What are the rules for the identifier?
What is structure in c definition?
write a program to generate address labels using structures?
int a=20; int b=30; int c=40; printf("%d%d%d"); what will be the output?