Posts

29. Program that calculates the squares and cubes of the integers from 0 to 10.

28. Program that inputs a five-digit integer, separates the integer into its digits and prints them separated by three spaces each.

27. Program that prints the integer equivalent of a character typed at the keyboard.

26. Display checkerboard pattern with eight output statements, then display the same pattern using as few statements as possible.

25. Program that reads in two integers and determines and prints if the first is a multiple of the second.

24. Program that reads an integer and determines and prints whether it’s odd or even.

23. Program that reads in five integers and determines and prints the largest and the smallest integers in the group.

21. Program that prints a box, an oval, an arrow and a diamond.

20. Program that reads in the radius of a circle as an integer and prints the circle’s diameter, circumference and area.Use the constant value 3.14159 for Ï€. Do all calculations in output statements.

19. Program that inputs three integers from the keyboard and prints the sum, average, product, smallest and largest of these numbers.