#include<stdio.h>#include<math.h>void main(){ double i,a;int m=0; printf("Input a number LE 100000\n"); scanf("%d",&a); for(i=1;i<6;i++){ if(pow(10,i)>a) {m++; printf("a is a %d-digit number\n",m);break;} }
}
#include <stdio.h>void main(){void range(int *p);int i,a[3],*p;p=a;printf("input 3 number:");for(i=0;i<3;i++)scanf("%d",&a[i]);range(a);printf("b[3]=");for(i=0;i<3;i++)printf("%d",p++);printf("\n");}void range(int *a){int i,b[3],d;for(i=0;i<2;i++){if(b[i]>b[i+1]){d=b[i+1];b[i+1]=b[i];b[i]=d;}}}