Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
30272 Program Ex1
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { byte a; int b; double c; float d; decimal e; Console.Write("Enter a = "); a = byte.Parse(Console.ReadLine()); Console.Write("Enter b = "); b = int.Parse(Console.ReadLine()); Console.Write("Enter c = "); c = double.Parse(Console.ReadLine()); Console.Write("Enter d = "); d = float.Parse(Console.ReadLine()); Console.Write("Enter e = "); e = decimal.Parse(Console.ReadLine()); Console.ReadLine(); Console.WriteLine("Value a = {0}", a); Console.WriteLine("Value b = {0}", b); Console.WriteLine("Value c = {0:f1}", c); Console.WriteLine("Value d = {0:f2}", d); Console.WriteLine("Value e = {0:f3}", e); Console.ReadLine(); } } }
run
|
edit
|
history
|
help
0
Random number guessing game v1
Lesson 1.2 Part II
StackOverflow Generic
Hello
newMultDiv
1
iran
4. Inheritance
Main5.3
sdfrgthyujyhtgrf