Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- float proizvod(int broj){
- if(broj==0) return 1;
- else return broj%10*proizvod(broj/10);
- }
- int main(){
- int broj;
- float rez;
- scanf("%d",&broj);
- rez=proizvod(broj)/broj;
- printf("%.2f",rez);
- }
Add Comment
Please, Sign In to add comment