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

Explain enumerated types.

979


What is nested structure with example?

1016


Can 'this' pointer by used in the constructor?

1047


What is typedef example?

1117


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1324


Write a program to find factorial of a number using recursive function.

1069


Explain what is the difference between the expression '++a' and 'a++'?

1155


What is difference between scanf and gets?

1171


What are data structures in c and how to use them?

1097


What is a nested loop?

1074


‎How to define structures? · ‎

1035


What is the difference between null pointer and wild pointer?

1139


The __________ attribute is used to announce variables based on definitions of columns in a table?

1135


Is fortran still used in 2018?

987


Why calloc is better than malloc?

978