Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // tinh tong cac chu so
- // Khai bao thu vien ct
- /*nclude<stdio.h>
- #include<conio.h>
- void main()
- {
- int n;
- scanf("%d",&n);
- long s=0;
- int a;
- while(n!=0)
- {
- a=n%10;
- s=s+a;
- n=n/10;
- }
- printf("%ld",s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement