Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
30272 Program Ex1
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
//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(); } } }
20
Show compiler warnings
[
-
]
Show input
Compilation time: 0,23 sec, absolute running time: 10 sec, cpu time: 0,08 sec, average memory usage: 25 Mb, average nr of threads: 5, absolute service time: 10,25 sec
edit mode
|
history
|
discussion