using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_68
{
class Program
{
static void Main(string[] args)
{
int n,hc,hdv,s;
do
{
Console.Write("nhap n="); n = int.Parse(Console.ReadLine());
} while (n < 0 ||n > 99);
hc = n / 10; hdv = n % 10;
s = hc + hdv;
Console.Write("tong cac chu so co trong {0} la {1}", n, s);
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_68
{
class Program
{
static void Main(string[] args)
{
int n,hc,hdv,s;
do
{
Console.Write("nhap n="); n = int.Parse(Console.ReadLine());
} while (n < 0 ||n > 99);
hc = n / 10; hdv = n % 10;
s = hc + hdv;
Console.Write("tong cac chu so co trong {0} la {1}", n, s);
Console.ReadKey();
}
}
}