Thread: new here!

  1. #1
    Registered User
    Join Date
    Mar 2002

    new here!

    Hello all! I am in the process of learning C programming and thought joining a C programming board would help. I am having lots of trouble with grasping the basics. Everytime I try and start to write a program I dont know where to start. I got the C for dummies book and that has helped out a little. I am trying to write a program reads integers and prints out their binary representations. I have to have 2 functions in it. One, Write a function called power that takes two integer arguments, say j, and k. Your function should return jk. Thus power( 3, 4 ) should return 81 which is 3 to the fourth power, 3 * 3 * 3 * 3. Two, You should write another function named binaryrep that takes an integer argument, say m. It outputs the binary representation of m followed by a newline.
    any tips or examples to this I would love!


  2. #2
    Registered User
    Join Date
    Aug 2001
    you should try the search facility, since your new we will let you off, lol

    follow the link
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

Popular pages Recent additions subscribe to a feed