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 |
What is the advantage of c?
What is c language & why it is used?
What are the average number of comparisons required to sort 3 elements?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
write a programming in c language, 1 3 5 7 9 11
What is a ternary operator in c?
Why is c faster?
Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”
What are extern variables in c?
c program to print a name without using semicolon
please explain every phase in the "SDLC" in the dotnet.
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST