Re: Help needed




LordOfNoldor wrote:
First of all I want to sat hello to everybody. I'm a newbie (for both
the group and f programming:) and I need your help. I am studying
mechanical engineering and i heard that learning f programming is
necessary for the future. I am studying f myself at home and I'm using
"Programmer's Guide to F" from Brainerd et al. as reference book. I got
stuck at question 4 on page 75. I need to print out the numbers from 1
to 100 that are not perfect squares. I know "do loop" "select case" and
"if" structures but I couldn't combine what I know to reach the answer.
I need someone to show me the way:) Any help would be appreciated....

Several people have already responded, and some have even given you
complete solutions. However, from your postings, I gather that your
difficulties have more to do with what algorithm to use rather than how
to express an algorithm in Fortran.

In any beginner's exercise such as this, the first prerequisite to
writing a program is an understanding an algorithm to solve the
problem, The programming language is only a vehicle to communicate that
understanding to the computer.

Rethink your problem, develop/obtain an algorithm and _then_ come to
this forum with questions.

.



Relevant Pages

  • Re: Theodore Adorno, a prophet of data systems design
    ... > correct algorithm proof is a rarity. ... > to hinge on how one reads the bit about actual programming experience. ... > Perhaps Mr Nilges doesn't read those threads ... >> to people as a way of asserting authority easily. ...
    (comp.programming)
  • Re: Theodore Adorno, a prophet of data systems design
    ... with the idea of "proving" an algorithm to be correct. ... Perhaps Mr Nilges doesn't read those threads ... this newsgroup isn't about "asserting authority". ... since (in the context of a programming discussion) colour only ...
    (comp.programming)
  • Re: Computer Programming Career
    ... a great image-recognition algorithm won't be ... >> evidence I offer the vast stretches of extant crap C code publically ... This problem is not limited to C, of course, but that's the language ... Arithmetic is a fundamental programming concept. ...
    (comp.programming)
  • Re: Aspiring highest-order programmer
    ... An NP algorithm, as Ian reminded us, is ... one whose execution time formula is not a polynomial. ... >>his own goddamn programming and is man enough to admit error) it was ... > reason to suspect that no such algorithm exists. ...
    (comp.programming)
  • Re: Letter to US Sen. Byron Dorgan re unpaid overtime
    ... > This is nonsense: the generallisation, and why it is bad, isn't about ... > using strlen but using an Oalgorithm when there is a trivial O ... stuff and believes it will be programming in mud hits in third ...
    (comp.programming)