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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the salient features of c languages?

1066


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1248


Does c have an equivalent to pascals with statement?

973


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

999


What are high level languages like C and FORTRAN also known as?

1128


What is omp_num_threads?

1052


Is the exit() function same as the return statement? Explain.

1050


How to throw some light on the b tree?

1041


How is a pointer variable declared?

1041


Which is more efficient, a switch statement or an if else chain?

988


What is pre-emptive data structure and explain it with example?

3680


Explain do array subscripts always start with zero?

1196


What is the use of in c?

972


What is getche() function?

1003


How does #define work?

1034