[prev] [index] [next]

Exercise: Powers of Two

Convert code on previous slide into a complete program:
  • define a suitable main program
  • add necessary #include's
  • define a function to compute 2 i