Giải giúp mình bài tập pascal này..........?

Đề: Nhập số nguyên dương N. Tính tổng số chữ số của N.

Ví dụ N=123--> tổng: 1+1+1=3, N=7864-->tổng= 1+1+1+1=4

Phạm vi bài giải trong sách giáo khoa pascal 11học kỳ I thôi nha vì đây là đề kiểm tra HK

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.