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 print this sereis 2 4 3 6 5..........?
1.write a program to merge the arrays 2.write efficient code for extracting unique elements from a sorted list of array?
helllo sir , what is the main use of the pointer ,array ,and the structure with the example of a programe
Differentiate between #include<...> and #include '...'
Explain what is a pragma?
Is c is a high level language?
Is multithreading possible in c?
What is wrong with this declaration?
what is data structure?
Give the Output : * * * * * * * * * *
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?