0

This code is the searches for solid sphere, surface area and volume area but it is not working

'declaration Dim radius As double Dim surfacearea As Double Dim volume As Double 'get user input radius = Convert.ToDouble(txtRadius.Text) 'calculation surfaceArea=4.0*Pi *Math.pow(radius.2.0) volume=4.0/3.0*Pi* Math.pow(radius.3.0) 'output lblSurfaceArea.Text = Convert.ToString(surfaceArea) lblVolume.Text =Convert.ToString(volume)

5th Dec 2020, 5:44 AM
Manuja Bandara
Manuja Bandara - avatar
1 Antwort
+ 1
The question is tagged for C# but the language is VB.Net. Are you trying to make it compile as C#?
5th Dec 2020, 6:25 AM
Brian
Brian - avatar