Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


write a program for even numbers?

Answers were Sorted based on User's Feedback



write a program for even numbers?..

Answer / vin

yes

Is This Answer Correct ?    0 Yes 0 No

write a program for even numbers?..

Answer / sadakrishnaj

to print numbers which are even from 1 to 100
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No

write a program for even numbers?..

Answer / maryam

q1 yes q2 yes q3 yes q4 no q5 no q6 yes q7 no q8 no q9 no q10 no

Is This Answer Correct ?    0 Yes 0 No

write a program for even numbers?..

Answer / sumon

#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a%2==0)
{
printf("a is even number");
else
printf("a is odd number");
}
return o;
}

Is This Answer Correct ?    0 Yes 0 No

write a program for even numbers?..

Answer / vinay kumar gupta

#include <stdio.h>
#include<conio.h>
void main()
{
int i,lim;
clrscr();
printf("enter the limit \n");
scanf("%d",&lim);
for(i=1;i<=lim;i++)
{
if (i%2==0)
}
printf("even no. are= %d",i);
getch();
}

Is This Answer Correct ?    10 Yes 11 No

write a program for even numbers?..

Answer / kamal

* read a number … */

#include <stdio.h>

int main (void) {

int num; /* input number */

int rem; /* remainder …*/

/* get number from user */

printf(“Please enter a number: ”);

scanf(“%d”, &num);

/* calculate remainder … */

rem = num % 2;

if (rem == 0) {

printf(“even\n”);

} else {

printf(“odd\n”);

}

/* terminate program */

return 0;

}

Is This Answer Correct ?    4 Yes 6 No

write a program for even numbers?..

Answer / shanmuganathanbalasubramanian

what is the difference between in if (i=2)$(i==2)

Is This Answer Correct ?    3 Yes 11 No

write a program for even numbers?..

Answer / gich

#include<stdio.h>
main()
{
int x;
for (x=10;x>=2;x-2;)
{
printf("x is %d\n"x);
{
}

Is This Answer Correct ?    1 Yes 12 No

write a program for even numbers?..

Answer / joe

#include<stdio.h>
//#include<conio.h>

main()
{
//clrscr();
int a;
printf("\nenter the no\n");
scanf("%d",&a);
evenNum(&a);

}
evenNum(int *i)
{
if(*i <0)
{
printf("\nEnter correct number :\n");
}
else if(*i%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
main();
}

Is This Answer Correct ?    6 Yes 18 No

Post New Answer

More C Interview Questions

What is the difference between text files and binary files?

0 Answers  


parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..

4 Answers  


Is main an identifier in c?

0 Answers  


though sbi was nationalized why its not comes under nationalized banks and its comes under publicsector banks

3 Answers   State Bank Of India SBI,


What are reserved words with a programming language?

0 Answers  


What is modifier & how many types of modifiers available in c?

0 Answers  


What is the purpose of sprintf?

0 Answers  


write a program to display the array elements in reverse order in c language

16 Answers  


There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

1 Answers   Hathway,


Is flag a keyword in c?

0 Answers  


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

7 Answers   Accenture, Gridco, IBM, Kevin IT, TCS, Vimukti Technologies,


Write a pro-gramme to determine whether the number is even or odd?

1 Answers  


Categories