r/programminghomework • • May 03 '22

vb,net

following: (1) Read two numbers from a user. The first number is the start range, and the second number is the stop range. (2) Print the number of odd numbers between the start and stop range(3) Print the odd numbers between the start and stop range (4) Print the sum of alltheoddnumbers between the start and stop range.(5) Print the number of prime numbers between the start and stop range(6) Print the prime numbers between the start and stop range(7) Print thesumof alltheprime numbers between the start and stop range.(8) Print the number of even numbers between the start and stop range.(9) Print the even numbers between start and stop range(10) Print the sum of all the even numbers between the start and stop range.Note:Ensurethatthestoprangeisgreaterthanthestartrange. If the stop range is less than the start range, then display an error message to the user.

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Sad-Explanation88 May 04 '22

The counting and adding part is the difficult parts

1

u/thediabloman May 04 '22

What code do you have so far?