Saturday, 4 October 2014

program in java to find multiples of 5 in the range of 20 to 70




class five
{
public static void main(String args[])
{
int i=20;
while(i<=70) { System.out.print("\n\n\t\tThe multiple is = "+i); i=i+5; } } }







3 comments:

  1. I need to write a program called calculate that displays the multiples of 5 from 0 to 50 , I need to use a for loop structure, the output should be
    0 :Multiple of 5
    1
    2
    3
    4
    5 Multiple of 5
    6
    7

    ....

    50

    ReplyDelete
  2. i need to write program multiple of five that are less than 100

    ReplyDelete
  3. i wanted Write a program to display the multiples of 5 from m to n(m<n) in the same line. this program in java

    ReplyDelete