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...

Design a program using an array that lists even numbers and
odd numbers separately from the 12 numbers supplied by a user.

Answer Posted / valli

main()
{
int a[12],j;
printf("enter 12 numbers");
for(i=0;i<12;i++)
scanf("%d",&a[i]);
printf("even numbers\n");
for(i=0;i<n;i++)
if(a[i]%2==0)
printf("%d ",a[i]);
printf("odd numbers\n");
for(i=0;i<12;i++)
if(a[i]%2)
printf("%d ");
}
printf("%d ",a[i]);

Is This Answer Correct ?    15 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is f'n in math?

1089


What is p in text message?

1001


What is the best way to store flag values in a program?

1093


Why isnt there a numbered, multi-level break statement to break out

1065


What is array in C

1175


Explain the properties of union. What is the size of a union variable

1196


How can a process change an environment variable in its caller?

1198


How can you invoke another program from within a C program?

1084


write a program to find out prime number using sieve case?

2108


What is meant by high-order and low-order bytes?

1056


Is a house a mass structure?

1112


can we change the default calling convention in c if yes than how.........?

2549


What is a sequential access file?

1189


How do we open a binary file in Read/Write mode in C?

1248


Why we use void main in c?

1186