+ 1
How to code based below description?
Harsh has candies to eat but they are in different 2 packets. Given the amount of candies in packet A - and in packet B - . Return the total number of candies Harsh can eat. Example a=4 b=3 Return 7 . Input Format Only line contains two integers a and b Constraints 0<=a, b<=1000 Output Format Return single integer, which is the required answer https://code.sololearn.com/cksvuMuHSeg8/?ref=app
4 Réponses
+ 3
It's working fine for me, but I will say you seem to have some styling issues.
Typically comments go on the line before the code it applies to.
+ 3
Just to add to Justice answer, if you want to comment at the same line of the code, place a whitespace first before typing the # symbol to separate the code and the comment.
https://code.sololearn.com/cwI3xFl824pq/?ref=app
+ 1
Do you have an attempt where you tried, even if it's just pseudocode?
0
https://code.sololearn.com/cksvuMuHSeg8/?ref=app
This code i tired but not works