Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • Answer for this question in C/C++

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 6
    Answer it

    Given an array of numbers I, write a program to find the sum of remaining in the array and display the new array. the first line specifies the no of elements in the array followed by the elements in the array in the second line.

    Sample input: 4 1 2 3 4

    Output: 9,8,7,6

    Constraints: 1<=|A|<=50 1<=i<=100

    Explanation: add all the elements except the first element for the first digit, and all elements except 2nd element for the 2nd and so on. 2+3+4=9 is the first digit of the o/p.

    1+3+4=8 is the 2nd digit.

    1+2+4=7 is 3rd.

    1+2+3 is last

    In app sample code c programming forum

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: