###### Asked in C Programming

C Programming

# Help to Write a beginning c program that reads 10 integers and prints the first and the last on one line the second and the ninth on the next line?

UNANSWERED

123

**We need you to answer this question!**

###### If you know the answer to this question, please register to join our limited beta program and start the conversation right now!

## Related Questions

###### Asked in Computer Programming, C Programming, C++ Programming

### Range of bits in c language?

Write a program to find second largest number in a collection of
integers?
...

Read More

###### Asked in C Programming

### Dry run table in flow-chart?

/* my second program in C++ with more comments */ #include
<iostream> using namespace std; int main () { cout <<
"Hello World! "; // prints Hello World! cout << "I'm a C++
program"; // prints I'm a C++ program return 0; }
...

Read More

###### Asked in Computer Programming, C Programming

### Write a c program that reads ten integers and prints the first and the last numbers on one line and second and ninth on one line and so on....?

#include <cstdio>
int main()
{
int x[10];
printf("Enter 10 integers: \n");
for(int i = 0; i < 10; i++)
{
scanf("%d", &x[i]);
}
for(int i = 0; i < 10; i++)
{
printf("%d, ", x[i]);
}
char wait;
scanf("%s", wait);
return 0;
}
...

Read More

###### Asked in Math and Arithmetic, C Programming, Algebra

### Write a program that reads in two integers and prints if the first is multiple of the second?

There are many ways to do it.
You could create a loop that subtracts the second from the
first and stops when the first is no longer positive. If the first
ever becomes zero, it's a multiple.
You could divide the first with the second, multiply back the
quotient with the second and compare with the first. If they are
equal, it's a multiple.
The easiest way is most likely the use of modulo operator to
check the remainder after division. if(A%B ==...

Read More

###### Asked in Neil Armstrong, The Moon

### Why was foot prints on the moon for millions of years?

There was not foot prints on the moon for millions of years. But
there was foot prints because on the second landing on the moon the
fist foot prints where still there because there was no wind there.
There's no wind in space so it has no way of disappearing.
...

Read More

###### Asked in Math and Arithmetic, C Programming

### Write a C program that will ask the user for 4 integer values and then produce the following output 1 The sum of the four numbers 2 The sum of the first two numbers minus the sum of the las?

#include<stdio.h> main() { int a,b,c,d; // The four
integers to be asked printf("Give the first integer: "); //asks for
the first integer scanf("%d",&a); // puts the user input in the
address of the integer "a" printf("Give the second integer: ");
//same explanations scanf("%d",&b); printf("Give the third
integer: "); scanf("%d",&c); printf("Give the fourth integer:
"); scanf("%d",&d); printf("1. The sum of the four integers is:
%d",a+b+c+d); //prints the sum of the four integers given by the
user, notice the "a+b+c+d" at the end) printf("2. The...

Read More

###### Asked in Apollo Moon Missions, Cold War

### What was the name of the second manned space program?

The first program to put a man in space was the Soviet Union's
Vostok program, so the second manned space program would be the US
Mercury program. The second US manned program was Gemini.
...

Read More

###### Asked in Math and Arithmetic

### What can you tell about two integers when their quotient is positivenegative and zero?

When the quotient of two integers is positive, either both
integers are positive or both negative.
When the quotient of two integers is negative, one of the
integers is positive and one negative.
When the quotient of two integers is zero, the first integer is
zero and the second one is anything but zero.
...

Read More

###### Asked in Math and Arithmetic, Factoring and Multiples

### A number that is divisible by a certain number?

IF they are integers, then the first number is a multiple
of the second and the second is a factor of the first.
...

Read More

###### Asked in Math and Arithmetic, Numbers , Ratios (mathematical)

### What are rational numbers that have two integers?

Any 2 digit integers are rational numbers because all integers
or whole numbers are rational numbers.
...

Read More

###### Asked in Apartments and Home Rentals

### What apartments have a second chance program in marietta ga?

What apartment in Mariette have a second chance program

Read More

###### Asked in Percentages, Fractions, and Decimal Values

### Where does a fraction come from?

It comes from a ratio of two integers, the second of which is
not zero.

Read More

###### Asked in Cold War, Space Travel and Exploration, Apollo Moon Missions

### What was the name of the second space program?

The second American space program aimed at making further
progress toward manned exploration of the Moon was the Gemini
program.
...

Read More

###### Asked in Apartments and Home Rentals

### What apartments have the second chance rental program in Atlanta Ga?

what apartments have the second chance rental program in atlanta
ga?

Read More

###### Asked in Algebra, Ratios (mathematical)

### What can be written as a ratio of integers?

Provided the second integer is not a zero, the ratio will be a
rational number.
...

Read More

###### Asked in Numbers

### Is the quotient of two integers a rational number?

Yes, but only if the second integer is not zero.

Read More

###### Asked in TV Shows and Series

### What are the release dates for Second Generation Wayans - 2013 The Beginning of the End of the Beginning 1-10?

Second Generation Wayans - 2013 The Beginning of the End of the
Beginning 1-10 was released on:
USA: 19 March 2013
...

Read More

###### Asked in Roman Empire

### What event marked the beginning of the roman empire?

The winning of the second Punic war marked the beginning of the
Roman empire as after their victory, Rome was ceded
territories.
The winning of the second Punic war marked the beginning of the
Roman empire as after their victory, Rome was ceded
territories.
The winning of the second Punic war marked the beginning of the
Roman empire as after their victory, Rome was ceded
territories.
The winning of the second Punic war marked the beginning of the
Roman empire as after their victory, Rome...

Read More

###### Asked in Math and Arithmetic, Algebra, Geometry

### Is 50 a perfect square and why?

No it is not, because there are no integers that give a value of
50 when raised to the second power.
...

Read More

###### Asked in Math and Arithmetic, Numbers

### Is the quotient of any two integers a rational number?

No. The second integer MUST be non-zero.

Read More

###### Asked in Math and Arithmetic

### What is the difference between positive and non negative integers?

Zero belongs to the second set but not the first.

Read More

###### Asked in Apollo Moon Missions

### Second american-manned space program?

The second American maned space program was the two man
spacecrafts called the Gemini.
...

Read More

###### Asked in Punctuation and Capitalization

### Do you capitalize twenty-second?

No, except at the beginning of a sentence because it is not a
proper noun.
...

Read More

###### Asked in Numbers

### What are integers and rational numbers?

An integer is a whole number: this is a counting number, zero or
the negative of a counting number.A rational number is a number
which can be expressed as a ratio of tow integers, the second of
which is not zero.
...

Read More

###### Asked in Math and Arithmetic

### Is zero a natrul number?

There are two conflicting definitions of a "natural number":
these are "The set of positive integers", or "The set of
non-negative integers".
According to the first definition, the list of positive integers
does not include 0. However, according to the second definition,
this does include zero.
...

Read More