Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- main()
- {
- int i;
- float n;
- printf("Hay nhap gia tri cua n:");
- scanf("%f",&n);
- if(n<0)
- n*=(-1);
- else if(n==0)
- printf("So vua nhap co mot chu so \n");
- else
- {
- for(i=0;n>=1;i++)
- n=n/10;
- printf("chu so vua nhap co %d chu so",i);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment