Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Only certain spheres.
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { static double a = 0.0, b = 0.0; static void input () { Console.WriteLine("Escriba su nùmero: "); a=double.Parse(Console.ReadLine()); } static void cal () { b=(4*3.141*(a*a*a))/3; } static void val () { if (a%5==0) { Console.WriteLine("Tu resultado es: "+b.ToString()); } else { Console.WriteLine("FATAL ERROR! PLEASE RESTART COMPUTER "); } } public static void Main(string[] args) { input (); cal (); val (); } } }
run
|
edit
|
history
|
help
0
dfgthyjui8u7yt5rewsx
Testing 12
abcd
sdfnmj,k, mnfdc
Main5
LINQ Collections
Const
C# constructor in inheritance
Need to convert datetime containg '/' to '-' format
orytitoyt