السلام عليكم و رحمة الله و بركاته ..
شكرا لكم ..
و لجهودكم ..
أتمنى مساعدتي في تعديل هذا الكود :
The ASCII lowercase letters are separated from the uppercase letters by 32. Thus, to convert
a lowercase letter to uppercase, subtract 32 from it. Use this information to write a program
that reads characters from the keyboard. Have it convert all lowercase letters to uppercase,
and all uppercase letters to lowercase, displaying the result. Make no changes to any other
character. Have the program stop when the user presses the period key. At the end, have the
program display the number of case changes that have taken place.
using System;
class ASCII
{
static void Main()
{
char a;
Console.WriteLine("Enter any character:");
a=(char)Console.Read();
if(65>=a<=90)
a=a-32;
if(97>=a<=122);
a = a + 32;
Console.WriteLine("charecter after change is " + a);
Console.ReadKey();
}
}