masoodzaheer1234 masoodzaheer1234 06-02-2022 Computers and Technology contestada Write the code for a program that takes in an integer from the user and then calculates the sum of all the numbers from 1 to the integer entered by the user. For example, suppose the user entered the number 4; now, the output should be 10.