Sunday, 4 December 2022

Remove 0 form the first mobile number

  while (this.form.mobileNo?.charAt(0) === '0')

      this.form.mobileNo = this.form.mobileNo?.slice(1);

No comments:

Post a Comment

remove duplicates in an sorted array

  using System; public class HelloWorld {          public static void Main(string[] args)     {         int[] ar={2,2,3,3,4,6,6};          C...