Challenge 2: Multiple Asynchronous Calls

In this challenge, you are required to call the asynchronous function multiple times.

Problem Statement

Change the previous program to schedule the execution of two calls to the sum function.

Input

Two number n1 and n2

Output

The sum of two numbers in the order of the execution.

Coding Exercise

Write your code below. It is recommended​ that you try solving the exercise yourself before viewing the solution.

Get hands-on with 1200+ tech skills courses.