answersLogoWhite

0

HERE IS IT!!!!!

#include

#include

void main()

{

int a[12],b[12],c[12],i,j=0,k=0;

clrscr();

printf("Enter an integer\n");

for(i=0;i<1;i++)

{

scanf("%d",&a[i]);

}

for(i=0;i<1;i++)

{

if((a[i]%2)==0)

{

b[j]=a[i];

j++;

}

else

{

c[k]=a[i];

k++;

}

}

printf("This number below is even:\n\n");

for(i=0;i

{

printf("%d\n",b[i]);

}

printf("This number below is odd:\n\n");

for(i=0;i

{

printf("%d\n",c[i]);

}

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Which program do you create a graph?

You can use MS Excel to create a graph from data in the spreadsheet or from an external source. You also can display a graph with MS Powerpoint. MS Word can display a graph, but usually does not create it.


Is Html an example of an HTML program?

HTML is not a program it is a langue your computer speaks with the browser to create arguments and display data


HOW TO SOLVE 'C' problem?

1. write a 'c' program to read 4(four)numbers from a file 'BANK' and calculate the average of the numbers.Now print the calculated average in another output file 'AVERAGE' 2. write a 'c' program that finds the sum and average of inputted five integer numbers of the array using dynamic memory allocation function malloc(). 3. write a 'c' program to create simple elements 1,2,3,4 in the link list of 4(four)nodes and display the list's elements. 4. write a 'c' program to convert the expression (A+B)/(C+D) into postfix expression into stack.and then evaluate it for A=10,B=20,C=15,D=5 and display the stack status after each operation. 5. write a 'c' programto create a linked list implemented on an array containing the following numbers:1,2,3,3,3,4,4,9 and pack it to remove the duplicate numbers.so that only the following data are contained by the nodes:1,2,3,4,9


How do you create program that display your name?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { clrscr(); printf("Your name here"); getch(); }


Write a program in C to accept 10 values in an integer array and show odd even and negative numbers?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a[10],count_even=0,count_odd=0,neg=0,i; printf(" Enter the value in Array \n"); for(i=0;i&lt;10;i++) scanf("%d", &amp;a[i]); /* Calculating number of odd and even integer's */ for(i=0;i&lt;10;i++) { if((a[i]%2 ==0)) count_even++; if((a[i]%2==1)) count_odd++; if(a[i]&lt;0) neg++; } /* display the number of odd and even integer's */ printf(" Total number of even integer are %d\n ",count_even); printf("Total number of odd integer are %d\n", count_odd); printf(" Total negative integer are %d", neg); getch(); }


what is the answer on how to make a program that will ask the user to enter four number and display the sum and average of that four number?

To create a program that asks the user to enter four numbers and then displays the sum and average, you can follow these steps: First, prompt the user to input four numbers and store them in variables. Next, calculate the sum by adding these numbers together. Finally, compute the average by dividing the sum by four, and then display both the sum and the average to the user. Here's a simple example in Python: numbers = [float(input(&quot;Enter number {}: &quot;.format(i+1))) for i in range(4)] total = sum(numbers) average = total / 4 print(&quot;Sum:&quot;, total, &quot;Average:&quot;, average)


How can I create a dynamic lighting display using flashing LED light strips?

To create a dynamic lighting display using flashing LED light strips, you can program the strips to flash at different intervals and patterns using a microcontroller or LED controller. By adjusting the programming, you can create various effects such as strobing, fading, or color-changing patterns to achieve a visually appealing and dynamic lighting display.


How do you create a program that will display output?

It must use a function with a "return" statement. Or you could output via console. (.NET CODE(C#)) Console.WriteLine("Output.");


Write a line of code that will create the variable X in memory The data type of X should only hold whole numbers?

Dim Int_NumberHolder as Integer Int_NumberHolder = 3


How can I create a visually stunning display using a LED wall frame?

To create a visually stunning display using an LED wall frame, consider the following steps: Choose high-quality LED panels with vibrant colors and high resolution. Plan your content carefully, including images, videos, and animations that will captivate viewers. Use software to program dynamic transitions and effects to enhance the visual impact. Consider the placement and arrangement of the LED panels to create a cohesive and eye-catching display. Test and adjust the display to ensure optimal brightness and clarity.


Create a flowchart that will display my name?

ana


How do you create a mirror image of letters and numbers on a Windows program?

1 2 3 4 5 6 7 8 9