Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CharType
- {
- class MakeUpperCaseNotWar
- {
- static void Main(string[] args)
- {
- for(int i = 0; i < 5; i++)
- {
- WriteIfUpperChar(ReadChar());
- }
- }
- private static void WriteIfUpperChar(char someChar)
- {
- if (char.IsUpper(someChar))
- Console.WriteLine(someChar);
- }
- private static char ReadChar()
- {
- return char.Parse(Console.ReadLine());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement