explain these programs ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dellmacj
    New Member
    • Feb 2008
    • 2

    explain these programs ?

    hi, could someone explain to me in non-tech speak these programs? I'm a novice and C is a bit harder than i thought...how do you write them?

    1.an integer is said to be square free if its factors cannot be decomposed into other factors. write a program to print the 1st 10 square free integers starting from 16.

    2.a perfect number is a number in which the sum of all the factors is equal to that number. write a program to print the first 4 perfect numbers starting from 6.

    3. write a program to scan an integer value. determine if it is a pronic number - that is, a number which is the product of two consecutive integers.

    thanks in advance, I really appreciate it..
  • Meetee
    Recognized Expert Contributor
    • Dec 2006
    • 928

    #2
    Originally posted by dellmacj
    hi, could someone explain to me in non-tech speak these programs? I'm a novice and C is a bit harder than i thought...how do you write them?

    1.an integer is said to be square free if its factors cannot be decomposed into other factors. write a program to print the 1st 10 square free integers starting from 16.

    2.a perfect number is a number in which the sum of all the factors is equal to that number. write a program to print the first 4 perfect numbers starting from 6.

    3. write a program to scan an integer value. determine if it is a pronic number - that is, a number which is the product of two consecutive integers.

    thanks in advance, I really appreciate it..
    Hi,

    Before giving any kind of code, I would suggest you to start learing C in depth. You can take help of google for that. Here is a good link for your knowledge.

    C tutorial

    This all programs are really simple if you learn the fundamentals. Try something and come back with some code so we can help you :)

    Regards

    Comment

    • dellmacj
      New Member
      • Feb 2008
      • 2

      #3
      hey, thanks....i'll try that...

      Comment

      Working...