Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
Par ou ímpar input
//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 { public static void Main(string[] args) { //Your code goes here Console.WriteLine("escreve um número"); int num = Convert.ToInt32(Console.ReadLine()); if ( num % 2 == 0){ Console.WriteLine("número é par!");} else{ Console.WriteLine("número é ímpar");} } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Invalid cast
asdf
Intuit // C# // listing_4.6 (if_then_else // Shooting on the target)
Masking Credit Card Number
credentials
basics of generics
Accessit SalaryCalculation
SHA tester
example
GC collects object in scope
Please log in to post a comment.