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

15y ago

What else can I help you with?

Continue Learning about Basic Math

Write a qbasic program to display A NEW LINE?

In QBasic, you can display a new line using the PRINT statement. To create a new line, you can simply use an empty PRINT statement. Here’s a simple example: PRINT &quot;This is the first line.&quot; PRINT ' This will create a new line. PRINT &quot;This is the third line.&quot; This program will display the first line, then move to a new line, followed by the third line.


What number has the most prime factors?

Hi... Every integer can be expressed as the product of prime numbers (and these primes are it's factors). Since we can multiply any integer by 2 to create a larger integer which can also be expressed as the product of primes, and this number has more prime factors than the last, we can always get a bigger number with more prime factors. Therefore, there is no definable number with the most primes (much like there is no largest number)!


What is the opposite integer of 4?

The opposite integer of 4 is -4. In mathematics, the opposite of a number is its additive inverse, which means the number that, when added to the original number, results in zero. Therefore, the opposite integer of 4 is -4 because 4 + (-4) = 0.


Are imaginary numbers real numbers?

When people started classifying numbers in different ways Some numbers were grouped together and called Real numbers. Solutions that would create Imaginary numbers were simply explained away as impossible, later the rules for working with these numbers, but, even though they are not considered Real numbers some math operations will create Real number answers.


How To write a java program to create three tier applications using servlets?

barsanabegam

Related Questions

What a program of add to number in visul basic net?

In Visual Basic .NET, you can create a simple program to add two numbers by using input boxes or text fields to gather user input. For example, you would declare two variables to store the numbers, convert the input to numeric types, and then perform the addition. Finally, you can display the result using a message box or a label. Here's a basic example: Dim num1 As Integer = Convert.ToInt32(InputBox(&quot;Enter first number:&quot;)) Dim num2 As Integer = Convert.ToInt32(InputBox(&quot;Enter second number:&quot;)) Dim sum As Integer = num1 + num2 MessageBox.Show(&quot;The sum is: &quot; &amp; sum)


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


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(); }


Write a qbasic program to display A NEW LINE?

In QBasic, you can display a new line using the PRINT statement. To create a new line, you can simply use an empty PRINT statement. Here’s a simple example: PRINT &quot;This is the first line.&quot; PRINT ' This will create a new line. PRINT &quot;This is the third line.&quot; This program will display the first line, then move to a new line, followed by the third line.


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(); }


What do display a dialog asking the user to enter an integer?

To display a dialog asking the user to enter an integer, you can use a graphical user interface (GUI) library such as Tkinter in Python. For example, you can create a simple input dialog using tkinter.simpledialog.askinteger() function, which prompts the user for an integer input. Make sure to include error handling to manage cases where the input is not an integer. Here's a basic example: import tkinter as tk from tkinter import simpledialog root = tk.Tk() root.withdraw() # Hide the main window user_input = simpledialog.askinteger(&quot;Input&quot;, &quot;Please enter an integer:&quot;)


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 do you write a program that accepts 5 integers in an array and shows the average of 3?

To write a program that accepts 5 integers in an array and calculates the average of the first three, you can follow these steps: First, create an array to hold the 5 integers. Then, prompt the user to input the integers and store them in the array. Finally, compute the average of the first three integers by summing them and dividing by 3, and display the result. Here’s a simple example in Python: numbers = [int(input(&quot;Enter integer {}: &quot;.format(i + 1))) for i in range(5)] average = sum(numbers[:3]) / 3 print(&quot;Average of the first three integers:&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.");