using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication20
{
class Program
{
static void Main(string[] args)
{
int x;
int z = 0;
Console.WriteLine(" plz enter the num");
x = int.Parse(Console.ReadLine());
while (x!=0)
{
z++;
x = x / 10;
}
Console.WriteLine(" The num of digits is = " + z);
Console.ReadKey();
}
}
}
ليست هناك تعليقات:
إرسال تعليق