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 |
How to Throw some light on the splay trees?
What is the purpose of Scanf Print, getchar, putchar, function?
write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com
write a program to find the given number is prime or not
2 Answers Accenture, Vasutech,
What is the use of sizeof?
what is difference between array of characters and string
main() {int a=200*200/100; printf("%d",a); }
What is the difference between malloc calloc and realloc in c?
What is 02d in c?
Explain what is meant by 'bit masking'?
I need previous papers of CSC.......plz help out by posting them.......
How does variable declaration affect memory?