Write a program using two-dimensional array that lists the odd
numbers and even numbers separately in a 12 input values.
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 |
State two uses of pointers in C?
hi how to convert program from notepad to turboc editor can u please help me
What is a structure in c language. how to initialise a structure in c?
WRITE A PROGRAM TO FIND A REVERSE OF TWO NO
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is structure and union in c?
What are the types of pointers in c?
when user give a number it multiply with 9 without useing '+' and '*' oprator
Write a program to print numbers from 1 to 100 without using loop in c?
create an SINGLE LINKED LISTS and reverse the data in the lists completely
What is floating point constants?
What is the use of f in c?