🔒 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
1,078
Guests online
6,949
Total visitors
8,027

Forum statistics

Threads
2,354,263
Posts
29,382,959
Members
1,079,394
Latest member
vhenz
Back
Top