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