这个很简单的
//编写一个函数,计算100以内个位数是5且被3整除的整数个数
#include "stdio.h"
void main()
{
int jishu(int n);
int count=0 ;
int n=0;
printf("Please input a number:\n");
scanf("%d",&n); //n是要求在哪个数以内计数,此题为100,输入100即可
count=jishu(n);
printf("%d\n",count);
}
int jishu(int n)
{
int i=0;
int count=0;
for(i=0;i
编写一个函数,计算100以内个位数是5且被3整除的整数个数,用C语言的形式编写
编写一个函数,计算100以内个位数是5且被3整除的整数个数,用C语言的形式编写
其他人气:485 ℃时间:2020-05-10 11:31:59
优质解答
我来回答
类似推荐
猜你喜欢
- 1where did you go just now?
- 2等腰三角形底角为15度,腰长为4cm,则腰上的高为【】cm
- 310.Don’t ____ it.Let’s try again.
- 4若函数y=a-bcosx的最大值为3/2,最小值为-1/2,求函数y=-4asinbx的最大值
- 5i was too busy those days,and i spent ____little time i had with my family.
- 6表现抗洪战士英勇的成语
- 7小强把280毫升的雪碧倒入8个小杯和2个大杯,正好倒满.如果小杯的容量是大杯容量的3分之1,小杯和大杯容量
- 8《江城子·密州出猎》重点句子是什么?
- 9高一数学(集合的含义与表示题)
- 10电风扇或吊扇开的越慢越省电,还是开的越快越省电?