phone number should be a string or some numeric type that have capacity to save phone number?

前端 未结 4 1464
忘了有多久
忘了有多久 2021-01-01 23:09

We want to store 10 digit mobile number i.e.9999999999. Should it be numeric or string datatype? We don\'t want to do any calculative or manipulation operation on this

4条回答
  •  温柔的废话
    2021-01-01 23:32

    you can use "ulong" for storing long integer values. and to read the particular value or phone number, you can use "Convert.ToUInt64(Console.ReadLine());"

提交回复
热议问题