0% found this document useful (0 votes)
7 views5 pages

Java Programs for Basic Math Operations

This document provides instructions for 5 Java programming exercises: to display odd natural numbers and their sum up to a given integer n; to display the multiplication table from 1 to n vertically; to display the cube of numbers up to a given integer; to read 10 numbers from keyboard, find their sum and average; to find the sum of the first 10 natural numbers.

Uploaded by

Renzo Lim
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Java Programs for Basic Math Operations

This document provides instructions for 5 Java programming exercises: to display odd natural numbers and their sum up to a given integer n; to display the multiplication table from 1 to n vertically; to display the cube of numbers up to a given integer; to read 10 numbers from keyboard, find their sum and average; to find the sum of the first 10 natural numbers.

Uploaded by

Renzo Lim
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Write a program in Java to display the n terms of odd natural number and their

sum.
Write a program in Java to display the multiplication table vertically from 1 to n.
Write a program in Java to display the cube of the number upto given an integer.
Write a program in Java to read 10 numbers from keyboard and find their sum
and average.
Write a Java program to find the sum of first 10 natural numbers.

You might also like