Вы находитесь на странице: 1из 6

The radius of a circle is equal to one unit.

Write a program that will compute the correspondi


the circle and print or output the value of the radius and the area of the circle.

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.

ute the corresponding area of


rcle.

sum of the three integers.

ts the product of the three

s the average of the three

en or odd integer.

propriate control statements.

f a triangle.

d output the difference.

d output the difference.

e keyboard and will find the


nce is zero, compute R=2X +

e keyboard and will find the


ce is zero, compute R=2X +

uccedding radius is one unit


he area of the circle starting
the area of the circle and its

am, making his/her score as


.

e while loop statement.

e for loop statement.

the word Wow if the value of


of goals is less than 10. Your

oretime. to the screen four

h a loop that starts out with


for each of 5 loop iterations.

h a loop that starts out with


for each of 5 loop iterations.

bers, 2, 4, 6, 8, and 10. The


you need/use.

Вам также может понравиться