void f (int* a, int len) {
if (!a) return;for (int i=0; i<len; ++i) {
if (a[i]%2) {
printf ("%d is odd\n", a[i]);
} else {
printf ("%d is even\n", a[i]);
}
}
The simplest way is probably to read the numbers into an array and then prints each element of the array starting at the last one and moving backwards.
A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.
find even number in array
To write a C++ program to display the student details using class and array of object.
sorry
write an assembly language program to find sum of N numbers
How to write a program for mouse in microprocessor?
maxValue = function (array) {mxm = array[0];for (i=0; i<array.length; i++) {if (array[i]>mxm) {mxm = array[i];}}return mxm;}; i don't know
Accept 5 numbers in an array and display it.
Add the numbers into one variable as you read them in. But if you prefer, you can read the numbers into an array and then use a loop to add the numbers together.
for(int i = 1; i < 100; i+=2) { System.out.println(i); }
create a program that iterates until it finds a perfect number, then store that perfect number into an array. Continue iterating until you find three more. Then, you have an array of four perfect numbers.