"
#include
#include
int main() {
int number, max, min, n;
n=1;
printf(""输入第%d个数: "", n);
scanf(""%d"", &number);
max = number;
min = number;
while(n[span style=""color: rgba(128, 0, 128, 1)"">5) {
n++;
printf(""输入第%d个数: "", n);
scanf(""%d"", &number);
if(number>max)
max = number;
else if(number[span style=""color: rgba(0, 0, 0, 1)"">min)
min = number;
}
printf(""最大数为: %d\n"", max);
printf(""最小数为: %d\n"", min);
//代码效果参考:https://v.youku.com/v_show/id_XNjQwNjgxMzc4NA==.html
system(""pause"");return 0;
}
#include
#include
#include
int main()
{
int n=100,i,c=0,t;
while(n[span style=""color: rgba(128, 0, 128, 1)"">200)
{
i=1;
t=0;
n++;
for(i++;i[span style=""color: rgba(128, 0, 128, 1)"">15;i++)
if(n%i==0)
t=1;
if(t==0)
{
printf(""%d"",n);
c++;
}
}
printf(""\n101~200之间的素数共有:%d个"",c);
return 0;
}
#include
#include
#include
int main()
{
int c,i,t=0,j=1;
printf(""Enter a number:"");
scanf(""%d"",&c);
while(c>0)
{
i=c%10;
if(i%2!=0)
{
t=t+i*j;
j=j*10;
}
c=c/10;
}
printf(""\nnew number is:%d"",t);
return 0//代码效果参考:https://v.youku.com/v_show/id_XNjQwNjgxMzgwMA==.html
;}
"