a program to find the sum and average of two number in visual basics
Answers
Answered by
5
Answer:
a program to find the sum and average of two number in visual basicsPrivate Function Sum(ByVal x As Integer, ByVal y As Integer) As Integer Sum = (x + y) End Function Private Sub Command1_Click() Dim a, b, s As Integer a = Val(Text1. Text) b = Val(Text2. Text) s = Sum(a, b) Text3. Text = s End Sub Private…
Explanation:
hope I have helped u!!
Answered by
1
Explanation:
Length = 300m
Breadth = 200m
Perimeter of rectangular park = 2 (l+b)
= 2 (300+200)m
= 2(500)m
= 1000m or 1 km.
Karan takes 4 round.
So distance covered by Karan = 4 × Perimeter
= 4 (1)
= 4 km
So he covered 4 km.
Number of round required to cover 9km = 9/Perimeter
= 9/1
= 9 rounds
So he should take 9 rounds to cover the distance of 9km.
Hope it helps.
Similar questions