🔒 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

Online now

Members online
989
Guests online
1,099
Total visitors
2,088

Forum statistics

Threads
2,276,172
Posts
28,968,039
Members
1,231,153
Latest member
taengdaga
Back
Top