🔒 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,108
Guests online
981
Total visitors
2,089

Forum statistics

Threads
2,287,139
Posts
29,042,607
Members
1,216,383
Latest member
John061799
Back
Top