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
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
English,
5 days ago
Hindi,
5 days ago
Math,
5 days ago
English,
10 days ago
Business Studies,
10 days ago