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 difference between static variable and register variable?
What are linker error?
What are the ways to a null pointer can use in c programming language?
List the variables are used for writing doubly linked list program.
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A
What is c programing language?
say the following declaration is correct nr not. int b=a,n=0;
Can a pointer be null?
Write a program that accepts a string where multiple spaces are given in between the words. Print the string ignoring the multiple spaces. Example: Input: “ We.....Are....Student “ Note: one .=1 Space Output: "We Are Student"
ratio,age,persentage
What is optimization in c?
sir, i cannot find the way how to write aprogram by using array on queue