answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: 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?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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


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


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 sum of the first two numbers minus the sum of the last: %d",a+b-c-d); //prints the second condition by putting the correct operations return 0; //ends the program } I never tested this program though, but i think it would work.


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.


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.


What is the second integer if three consecutive integers have the sum of 153?

51


Where does fraction comes from?

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


Where does a fraction come from?

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


What are rational numbers that have two integers?

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


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.


What apartments have a second chance program in marietta ga?

What apartment in Mariette have a second chance program


Which websites stock cheap prints?

If you are looking for cheap online prints then the best place to look is on Ebay. You will find second hand and new products on there and there is often something at a good price.