Write a program to find the given number is odd or even
without using any loops(if,for,do,while)
Answer Posted / ramu gurram
#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 |
Post New Answer View All Answers
how to find binary of number?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
how to capitalise first letter of each word in a given string?
How do I use strcmp?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
What is the difference between test design and test case design?
What is the use of header files?
What is spark map function?
What do you mean by a sequential access file?
All technical questions
How do you print only part of a string?
What are terms in math?