Bitcoin

Bitcoin
Bitcoin

Java code to display numbers from 85 to 5 at the interval of 5

public class MultipleOfFive {
    public static void main(String[] args){
        int i = 90;
        do{
            i = i - 5;
            System.out.print(i + " ");
        }while(i  > 5);
    }
}

1 comment:

  1. This is a simple java code to get numbers from 90 to 0 but both numbers are excluded

    ReplyDelete

Facebook