WAP using LET statement to find the average of two numbers
Answers
Answered by
0
Explanation:
Here, we are taking input from the user of two integer number, first number will be stored in the variable a and second number will be stored in the variable b. Sum of the numbers is calculating by a+b and assigning into variable sum and average of numbers in calculating by (float)(a+b)/2 and assigning to variable avg.
Similar questions