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


Please Help Members By Posting Answers For Below Questions

if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

4483


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

1460


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

622


What is main function in c?

538


What is time null in c?

572






Write a program for finding factorial of a number.

622


What is the value of c?

562


What is a global variable in c?

582


What are the application of void data type in c?

682


What is a constant?

626


What do you mean by a sequential access file?

619


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

657


What is an endless loop?

794


What are the advantages of using new operator as compared to the function malloc ()?

745


Which are low level languages?

618