0

Help me in C++

Vous devez créer une application qui calcule la somme des nombres de 1 à N, où N est pris en entrée. Par exemple, pour le nombre 5, la sortie devrait être 15, car 1+2+3+4+5=15. On utilisant boucle for Solution c++

28th Jan 2025, 10:47 AM
Omar Zaafouri
Omar Zaafouri - avatar
3 ответов
+ 1
What have you tried so far?
28th Jan 2025, 11:44 AM
Lisa
Lisa - avatar
0
I want to create a application c++ , ask user to enter number and after calcule the sum while to arrive to the number entered. For example, you entere 6, the output equal 16, because 1+2+3+4+5+6=16. NB: use the boucle for @Liza #Liza
29th Jan 2025, 9:19 AM
Omar Zaafouri
Omar Zaafouri - avatar
0
It is not necessary to repeat what you have written in the description. Show as your code attempt so we can make suggestions. Hint: You need integer input. You can use a loop.
29th Jan 2025, 9:22 AM
Lisa
Lisa - avatar