Extra Practice

After tackling the Hello World assignment, try writing some other simple programs. You can use your hello world code as a starting point.
  1. change Hello World program to read & print a float instead of an int
  2. prompt user for 2 numbers and print them
  3. print 1 integer & 1 floating point number (instead of 2 ints)
  4. read and print the product of 2 ints (or floats)
  5. print only the larger of the two numbers entered
  6. print whether the entered number is even or odd
  7. print the largest even number (if there is one) or neither (if both are odd.)
  8. print the numbers from 1 to n (you don't need to use scanf for this one!)
  9. print the even numbers from 1 to n
  10. print the first ten multiples of the entered number
  11. print all multiples of the entered number that are less than 50
  12. print an n by m grid of numbers (addition table)
  13. print an n by m grid of numbers (multiplication table)

If you come up with any other interesting problems that can be solved with basic C code, please email them to me so that I can add them to the list!