English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

e.g:When user enters 150,the program should print : 2 3 5 5

2006-12-11 21:53:43 · 2 answers · asked by sweety 2 in Computers & Internet Programming & Design

2 answers

First factor by hand, and see what steps you are taking and what steps repeat, then use that as your algorithm. Expecting someone to give you pure code or a function is the brainpower of others. You'll never learn that way!

Remeber programming, is done logically, in steps.

2006-12-12 02:16:43 · answer #1 · answered by Arkane Steelblade 4 · 0 0

A simple recursive function should suffice for this piece of homework. Good luck!

2006-12-11 22:07:10 · answer #2 · answered by Anonymous · 1 0

fedest.com, questions and answers