Академический Документы
Профессиональный Документы
Культура Документы
Write a program that will read in three integers, compute and outputs the sum of the three in
Write a program that will read in three integers, compute and outputs the product of
integers.
Write a program that will read in three integers, compute and outputs the average of
integers.
Write a program that will determine if the entered integer is even or odd integer.
Write a program that will prints the message Hello ICT 2 ten times. Use appropriate control st
Write a program that will compute and output the area of a triangle.
Write a program that will read in two integers typed from the keyboard and output the differe
Write a program that will read in two integers typed from the keyboard and output the differe
Write a program that will read in two integers (X and Y) typed from the keyboard and wi
difference. If the difference is negative, compute R=X+Y and if the difference is zero, comput
2Y. The program must then output the value for X, Y, and R.
Write a program that will read in two integers (X and Y) typed from the keyboard and wi
difference. If the difference is positive, compute R=X*Y and if the difference is zero, comput
2Y. The program must then output the value for X, Y, and R.
The initial value for the radius of a circle is equal to one unit and each succedding radius i
greater than the value before it. Write a program that will compute for the area of the circ
from radius = 1 up to radius = 3. The program must output the value for the area of the circ
corresponding radius.
Write a program that will determine if the student passed or failed the exam, making his/he
reference. The passing mark is 70, any score below 70 is considered failed.
Write a program that will compute and output the area of a rectangle.
Write a program that will output numbers 1 to 10, one number per line. Use while loop statem
Write a program that will output numbers 1 to 10, one number per line. Use for loop statemen
Suppose goals is a variable of type int. Write a program that will output the word Wow if th
the variable goals is greater than 10 and the words OhWell if the value of goals is less tha
Suppose goals is a variable of type int. Write a program that will output the word Wow if th
the variable goals is greater than 10 and the words OhWell if the value of goals is less tha
program should accept an input for your variable goals. Use ifelse statement.
Write a program that will use loop statement to output the phrase Onemoretime. to the s
times. Give any declarations or initializating statements that are needed.
Write a program that will set the variable result equal to 25. Do this with a loop that start
the value of result equal to 1 and multiplies the value of result by 2 for each of 5 loop
Give any declarations and initializing statements that are needed.
Write a program that will set the variable result equal to 25. Do this with a loop that start
the value of result equal to 1 and multiplies the value of result by 2 for each of 5 loop
Give any declarations and initializing statements that are needed.
Write a program using for loop statement that writes out the even numbers, 2, 4, 6, 8, an
output should put each number on a separate line. Declare all the variable you need/use.
en or odd integer.
f a triangle.