View Single Post
ישן 15-09-06, 15:48   # 2
Matchs
תודה על תרומתך.
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: מרכז.
הודעות: 935

Matchs לא מחובר  

אני לומד C# כבר חצי שעה, וכרגע בניתי מחשבון בדיוק למה שאתה רוצה..
הינה הדוגמה, תמשיך כמו שאתה יודע:

PHP קוד:
            int A;
            
int B;
            
char C;

            
Console.WriteLine("Welcome to C# calculator!");
            
Console.WriteLine("Made by Rotem the programmer :P");

            
Console.WriteLine();

            
Console.Write("Please insert the first number: ");
            
int.Parse(Console.ReadLine());

            
Console.Write("Please insert the second number: ");
            
int.Parse(Console.ReadLine());

            
Console.Write("Please insert an action: ");
            
char.Parse(Console.ReadLine());

            switch(
C)
            {
                case 
'+':
                    
Console.WriteLine("The Result: {0} {1} {2} = {3}"ACBA+B);
                    
Console.Read();
                    break;
            } 
__________________
לפניות, אנא השאירו לי הודעה פרטית.
Matchs.
  Reply With Quote