Discussion – Solved tasks for Visual Basic .NET lessons 1-3
BackComments
5 messages from 5 displayed.
//= Settings::TRACKING_CODE_B ?> //= Settings::TRACKING_CODE ?>
Comments
The last one took me so long to figure it out, I am pretty sure it's the wrong code.
Console.WriteLine("Enter the circle's radius (cm):")
Dim c, r, pi As Double
pi = 3.142
c = 2 * 3.142 * r
r = Console.ReadLine()
Console.WriteLine("The circle's circumference based on the given radius is:
" & 2 * 3.142 * r & " cm")
Console.WriteLine("Area of the circle is: " & r * r * pi &
"cm2")
Console.ReadKey()
Thank you
Hi wasim,
all the 3 codes you posted are ok. The last result is a bit different than ours
since you chose your pi
to be 3.142
but it's not
specified in the task description so you passed. Good job
5 messages from 5 displayed.