Write a programme to find even numbers without using any
conditional statement?
Answer Posted / guest
#nclude<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("\n Enter the numbers for a,b,c:");
scanf("%d%d",&a,&b);
c=a/b;
c=0;
printf("The given number is even");
getch();
}
| Is This Answer Correct ? | 6 Yes | 57 No |
Post New Answer View All Answers
What is the difference between functions getch() and getche()?
What is a stream in c programming?
How can I prevent another program from modifying part of a file that I am modifying?
What is the data segment that is followed by c?
Write a program to reverse a given number in c?
Explain what are reserved words?
What is the function of this pointer?
Why can’t constant values be used to define an array’s initial size?
Explain what is wrong in this statement?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
How do I get a null pointer in my programs?
What does it mean when a pointer is used in an if statement?
What are disadvantages of C language.
What are the advantages of c language?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12