Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int szamlalo(char c){
- > int tmp;
- >
- > while (c!=0){
- > c>>=1;
- > tmp+=1;
- >
- > return tmp;
- > }
- > }
- >
- > int main()
- > {
- > char c;
- > scanf("%c",&c);
- >
- > int a=szamlalo(c);
- > printf("%d", a);
- >
- >
- >
- > return 0;
- > }
Add Comment
Please, Sign In to add comment