new here!

This is a discussion on new here! within the C Programming forums, part of the General Programming Boards category; Hello all! I am in the process of learning C programming and thought joining a C programming board would help. ...

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    1

    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!

    thanks!

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

    follow the link

    http://www.cprogramming.com/cboard/s...t=print+binary
    hoping to be certified (programming in c)
    here's the news - I'm officially certified.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21