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 using two-dimensional array that lists the odd
numbers and even numbers separately in a 12 input values.



Write a program using two-dimensional array that lists the odd numbers and even numbers separately..

Answer / jeeva

#include<stdio.h>
#include<conio.h>
void main()
{
int a[20][20],k,n=20;
printf("enter the number of value");
scanf("%d",&n);
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
scanf("%d",&a[i][j]);
}}
if(i%2==0)
{
printf("the number is even");
}
else
{
printf("the number is odd");
}}
if(j%2==0)
{
printf("the number is even");
}
else
{
printf("the number is odd");
}
k=0;
k=k+a[i][j];
printf("%d",k);
}
gerch();
}

Is This Answer Correct ?    29 Yes 43 No

Post New Answer

More C Interview Questions

What is a char in c?

0 Answers  


Do pointers store the address of value or the actual value of a variable?

0 Answers   Fidelity,


Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 Answers  


Juxtapose the use of override with new. What is shadowing?

1 Answers  


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

0 Answers  


wt is d full form of c

6 Answers   TCS, Wipro,


I came across some code that puts a (void) cast before each call to printf. Why?

0 Answers  


What is sizeof int in c?

0 Answers  


how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.

2 Answers  


what is meant by the "equivalence of pointers and arrays" in C?

3 Answers   Satyam,


write the program for maximum of the following numbers? 122,198,290,71,143,325,98

5 Answers  


enum colors {BLACK,BLUE,GREEN} main() { printf("%d..%d..%d",BLACK,BLUE,GREEN); return(1); }

4 Answers   ME,


Categories