Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
30272 Program Ex6_1 else_if
//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) { Console.WriteLine("กรุณากรอกคะแนนสอบ : "); int score = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("คุณได้คะแนน : "+ score); if (score < 50) Console.WriteLine("คุณสอบตก"); else if (score < 60) { Console.WriteLine("***********"); Console.WriteLine("คุณได้เกรด 1"); Console.WriteLine("***********"); } else { Console.WriteLine("***********"); Console.WriteLine("คุณได้เกรด 4"); Console.WriteLine("***********"); } } } }
run
|
edit
|
history
|
help
0
Intuit // C# // listing_4.4 (StreamReader // input.txt)
code exple
project euler 13, C#
and
n!/x*x
Use Lock Keyword
Creating async methods in C# prior to version 5.0
foreach
Ftg
ew