#include <stdio.h>
int main( ){ int a,b,c,s ; s=0 ;for(a=1; a<=9; a++)for(b=0; b<=9; b++)for(c=0; c<=9; c++)if(a+b+c==10 || a+b+c==20 ) s++ ;printf("%d\n",s);
}
**************************
#include <stdio.h>int main( ){ int a,b,c,s ; s=0 ;for(a=1; a<=9; a++)for(b=0; b<=9; b++)for(c=0; c<=9; c++)if( (a+b+c)%10==0 ) s++ ;printf("%d\n",s);
}