How can i do it ? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 3

How can i do it ?

How can i get a line including numbers that are seperated by '-' and then calculate sum of the numbers? Point is if '-' gonna be received so i have to use char but then how can i calculate the sum??

5th Jan 2020, 6:35 PM
Maryam K
Maryam K - avatar
1 Réponse
27th May 2020, 4:15 AM
Shaili Shah
Shaili Shah - avatar