How do i increase the integer by 2 instead of 1

前端 未结 0 589
终归单人心
终归单人心 2021-02-14 21:42

There is this program that asks me to write a java program that asks the user to type a positive number n and prints the sum of odd numbers using while loop: 1+3+5+7…+(2n-1).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题