Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

  • C For Dummies (home)
  • History
  • Series
  • Supplemental
  • Blog Miscellany

Category Archives: Exercise

Post navigation

Newer posts →

1st, 2nd, and 3th

Posted on June 1, 2013 by dgookin
Reply

For your June exercise, you need to concoct code that properly generates an ordinal number. Write a function that returns a string “st” “nd” “rd” or “th” that’s tacked on to any integer value from 1 through what-have-you.
Continue reading →

Posted in Exercise | Leave a reply

Word Swapping

Posted on May 1, 2013 by dgookin
Reply

For your May challenge, write code that takes a two word sentence and displays the words in reverse order. For example, take the string Swap me and have the program spit out the text me Swap.
Continue reading →

Posted in Exercise | Leave a reply

Post navigation

Newer posts →

Recent Posts

  • Tagging a Union
  • The Clock Angle Problem – Solution
  • The Scary Part of the Union
  • The Clock Angle Problem
  • Back When Unions Were Useful

Recent Comments

  • dgookin on The Clock Angle Problem – Solution
  • Chris Webb on The Clock Angle Problem – Solution
  • Chris Webb on The Clock Angle Problem – Solution
  • dgookin on The Clock Angle Problem
  • Chris Webb on The Clock Angle Problem

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress