Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
30272 Program Ex5 if_else_odd_even
//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); double result = score % 2; if (result == 1) Console.WriteLine(score+" เป็นจำนวนคี่"); else Console.WriteLine(score+" เป็นจำนวนคู่"); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Explanation about Aggregate method in C#
C# managing ISO 8601 dates and times
Fórum ➡ Get all combinations for ▶different◀ Id's ♦
Generic 2 parameters hierarchy
asfdfsafasfsa
gfhfgsdfsfdsdghgfddfg
array print 2nd half first and 1 half later
Wild West of Meming
first VB code
Free cash app money
Please log in to post a comment.