i'am triyng to solve this simple exercise for my code class but i tried everthing and have no ideia why this code inst working
// Develop a modular structure with a function that you receive through
// parameter a positive integer and returns the number quantity of this number.
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <math.h>
int digitos(float N){
int i;
for(i = 0;i<10;i++){
printf("%f\n",N/pow(10,i));
if((N/pow(10,i))<0.0){
return i;
}
}
}
int main(){
int d ;
d = digitos(3000);
printf("The number of digist %d",d);
}