Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main ()
- {
- int
- scanf("%d",&n);
- i=0;
- while(i<3)
- {
- cifra=n%10;
- suma=suma+cifra;
- n/=10;
- i++;
- }
- if(n%1000==suma)
- {
- printf("tocno");
- }
- else
- {
- printf("netocno");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment