We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
It is generally bad practice to name a function something like Input() because the name of pretty much anything except a class/struct should start with a lowercase latter. Thus the functions we had to write should be input() and calculateTotalScore().
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Classes and Objects
You are viewing a single comment's thread. Return to all comments →
It is generally bad practice to name a function something like
Input()
because the name of pretty much anything except a class/struct should start with a lowercase latter. Thus the functions we had to write should beinput()
andcalculateTotalScore()
.