Computer Science, asked by saihajsokhi, 10 days ago

Write a program (in Java) to print the numbers from 0.5 to 5.0 with the updation of 0.5 ​

Attachments:

Answers

Answered by ProGamerManthan1710
1

Answer:

for ( double i = 0.5; i <=5; i +=0.5)

system.out.print(i)

Explanation:

lets skip till void main cause you know that

after the {

for ( double i = 0.5; i <=5; i +=0.5)

system.out.print(i)

Similar questions