Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Zadanie010
- {
- class Program
- {
- static bool CzyWKolejnosci(char a, char b, char c)
- {
- int d = 0;
- int e = 0;
- int f = 0;
- if(a>=65 && a <=90)
- {
- d = 32;
- }
- if (b >= 65 && b <= 90)
- {
- e = 32;
- }
- if (c >= 65 && c <= 90)
- {
- f = 32;
- }
- if (Char.IsLetter(a) == true && Char.IsLetter(b) == true && Char.IsLetter(c) == true)
- {
- if (a + d< b+e&& b+e < c+f)
- {
- return true;
- }
- else
- return false;
- }
- else
- return false;
- }
- static void Main(string[] args)
- {
- Console.WriteLine( CzyWKolejnosci('A', 'd', 'C') );
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement