+ 4
First you have to call the function as Pranav Kalro said, You also have to put name=0 outside the loop so it add all the charcters not just the last one
21st Sep 2020, 7:51 AM
Ruba Kh
Ruba Kh - avatar
+ 5
You didn't call the function. Try writing main() in the end.
21st Sep 2020, 7:48 AM
Qwerty123
Qwerty123 - avatar