🔒 Closed Pahelp mga lods (C PROGRAMMING)

Status
Not open for further replies.

vude24

Leecher
Oh! Another secret intel came in! It turns out that the gang members tattoos aren't merely a fashion statement, it is also the number of weapons the Wakwak has given them. Cody also found out that the total number of tattoos of all the gang members is n. Now, to determine how many weapons the gang has in total, Cody has to get the sum of all odd numbers from 0 to n.
Input
1. Value of n
Output
The first line will contain a message prompt to input the value of n. The second line contains the sum of all odd numbers from 0 to n.
Enter·n:·5
Sum·=·9
 
Status
Not open for further replies.

About this Thread

  • 0
    Replies
  • 1K
    Views
  • 1
    Participants
Last reply from:
vude24

Trending Topics

Online now

Members online
820
Guests online
4,169
Total visitors
4,989

Forum statistics

Threads
2,308,597
Posts
29,186,039
Members
1,192,085
Latest member
Brandon
Back
Top