0

Any c++ programmer?

i need to ask one question from cpp programmer.

25th Jan 2018, 10:06 PM
Mustafa Shaikh
Mustafa Shaikh - avatar
16 Respuestas
+ 3
you can get the input and then divide by 100, save that number and move to next step with the remainder.
25th Jan 2018, 10:57 PM
Daemo
Daemo - avatar
+ 4
there was a challenge once to determine the sequence of coins to form a given sum, this seems to be similar. Here's my code to solve it: https://code.sololearn.com/c4g9LAk9snrH It's an "optimized" version and I'm sorry I don't have the link to the challenge itself, there were simpler solutions there, maybe someone else remembers it and posts it here.
26th Jan 2018, 3:01 AM
lion
lion - avatar
+ 3
daemo, Thanks i got your logic. :)
26th Jan 2018, 8:21 AM
Mustafa Shaikh
Mustafa Shaikh - avatar
26th Jan 2018, 12:06 AM
Parker king
Parker king - avatar
+ 2
@Mustafa Shaikh If I had to infer what the code is that makes this output, it will be one that counts how many “hundreds” (100), “fifties” (50), “tens” (10), and “ones” (1) are in the input. Are you supposed to write a code to do this? Do you already have a code to do this? We need some more information in order to help you. Also, you can post a link in this discussion to a code you write in the code playground so we can go take a look.
26th Jan 2018, 12:10 AM
Parker king
Parker king - avatar
+ 1
ask
25th Jan 2018, 10:11 PM
UraL
+ 1
i am not getting the logic of an question. see this output. input is 650 6 notes of 100 1 notes of 50 0 notes of 10 0 notes of 5.
25th Jan 2018, 10:23 PM
Mustafa Shaikh
Mustafa Shaikh - avatar
+ 1
Nopes.
25th Jan 2018, 10:25 PM
Mustafa Shaikh
Mustafa Shaikh - avatar
+ 1
i have to see the output and have to generate this code.
25th Jan 2018, 10:25 PM
Mustafa Shaikh
Mustafa Shaikh - avatar
+ 1
not yet.
25th Jan 2018, 10:28 PM
Mustafa Shaikh
Mustafa Shaikh - avatar
+ 1
hi please see my codes guys
25th Jan 2018, 11:41 PM
amin
amin - avatar
+ 1
And Thanks everbody who helped me out. :)
26th Jan 2018, 9:57 AM
Mustafa Shaikh
Mustafa Shaikh - avatar