#includevoid main(){int i,d,m,n;char s[8]={'0'};scanf("%d",&
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/13 07:04:15
#includevoid main(){int i,d,m,n;char s[8]={'0'};scanf("%d",&n);i=0;do{m/8;d=n%8;
do{m=n/8;d=n%8;s[i]='0'+d;i++;n=m;}while(n!0);for(i=7;i>=0;i--)putchar(s[i]);}的输出结果?
do{m=n/8;d=n%8;s[i]='0'+d;i++;n=m;}while(n!0);for(i=7;i>=0;i--)putchar(s[i]);}的输出结果?
#include
void main()
{int i,d,m,n;
char s[8];
scanf("%d",&n);
i=0;
do{m=n/8;
d=n%8;
s[i]='0'+d;
i++;
n=m;
}
while(n!=0);
for(i--;i>=0;i--)
putchar(s[i]);
}
应该是这样的吧?结果要根据你输入的数来呀
这是十进制转八进制的一个程序
void main()
{int i,d,m,n;
char s[8];
scanf("%d",&n);
i=0;
do{m=n/8;
d=n%8;
s[i]='0'+d;
i++;
n=m;
}
while(n!=0);
for(i--;i>=0;i--)
putchar(s[i]);
}
应该是这样的吧?结果要根据你输入的数来呀
这是十进制转八进制的一个程序
#include int main() { int a[100]; int n,i,j,k,t,m; scanf("%d
main () {int m,n; scanf ("%d%d",&m,&n); while (m!=n) { while
输出m到n之间的素数#includevoid main(){int i,j,m,n,mark=1,k=0;scanf("
c语言的问题#includevoid main(){ int x,y; scanf("%d",x); if(x>2) i
#includevoid main(){int max(int x,int y);int a,b,c;scanf("%d
#includevoid main(){char string[81];int i,num=0;word=0;char
int main(){int a,n,i=1,sn=0,tn=0;printf("a,n=:");scanf("%d,%
#include void main(){int n,i; scanf("%d",&n);i=n&7; printf("
{ char s[100]; int c,i; scanf("%c",&c); scanf("%d",&i); scan
#include main() { int m,i,k; scanf("%d",&m); k=sqrt(m); for(
main() { int r,m,n,t; scanf("%d%d",&m,&n); if(m
C语言求素数和#include#includevoid main(){int a,b,c,d,sum;scanf("%d