Write a program to find the Sum of digits in Given number by using Java 8 Stream API?

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • Write a program to find the Sum of digits in Given number by using Java 8 Stream API?
    Java program to find the sum of digits of given number

ความคิดเห็น • 1

  • @jerinxavier5380
    @jerinxavier5380 11 หลายเดือนก่อน +1

    Without stream we can use while , and sum +=n%10 and n=n/10