解: #include <stdio.h>
main()
{
unsigned a,b,c;
int n;
printf(“input a:”);
scanf(“%o”,&a);
printf(“input n:”);
scanf(“%d”,&n);
b=a<<(16-n);
c=a>>n;
a=b|c;
printf(“%on”,a);
}
解: #include <stdio.h>
main()
{
unsigned a,b,c;
int n;
printf(“input a:”);
scanf(“%o”,&a);
printf(“input n:”);
scanf(“%d”,&n);
b=a<<(16-n);
c=a>>n;
a=b|c;
printf(“%on”,a);
}