View Single Post
ישן 12-12-07, 12:20   # 4
orlupo
חבר חדש
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
הודעות: 31
שלח הודעה באמצעות ICO אל orlupo שלח הודעה באמצעות MSN אל orlupo Send a message via Skype™ to orlupo

orlupo לא מחובר  

זה אמור להיות ככה:

קוד:
int sum=0,num;
Console.Write("Enter a number: ");
num = int.Parse(Console.ReadLine());
while (num > 0){
    sum+=num%10;
    num/=10;
}
Console.WriteLine("the sum of the numbers is: "+num);
  Reply With Quote