Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace exercicio.teste
- {
- class Program
- {
- static void Main(string[] args)
- {
- int ano;
- Console.WriteLine("Digite um ano: ");
- ano = int.Parse(Console.ReadLine());
- if (((ano % 4 == 0) && (ano % 100 != 0)) || (ano % 400 == 0))
- {
- Console.WriteLine("Ano " + ano + " bissexto");
- Console.ReadLine();
- }
- else
- {
- Console.WriteLine("Ano " + ano + " n bissexto");
- Console.Read();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement