Write a program to print the sum of all integers until it becomes single digit

Поділитися
Вставка
  • Опубліковано 11 жов 2024
  • Write a program to print the sum of all integers until it becomes single digit.
    Input/Expected Output:
    int a = 1234567890; // Output : 9
    int a = 1234567894; // Output : 4
    int a = 234567894; // Output : 3
    #techmentortutorials #techmentor

КОМЕНТАРІ •