<span style="font-family: Arial, Helvetica, sans-serif;">#include <stdio.h></span>
int main()
{
	int i, s, k, count = 0;
	for (i = 100; i < 1000; i++)
	{
		s = 0;
		k = i;
		while (k)
		{
			s += k % 10;
			k = k / 10;
		}
		if (s != 5)
			continue;
		else
			count++;
	}
	printf("%d\n", count);
	return 0;
}

 
                    
            
                

相关文章:

  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-12-11
猜你喜欢
  • 2021-11-17
  • 2021-06-21
  • 2021-07-01
  • 2022-12-23
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案