c.ihypress.ca: examples of C programs
Home > 01. Overview of C
  1. My first C program
    A program that prints out the sentence This is my first C program.
  2. Trying printf and scanf
    A program that asks the user for two numbers and prints out the sum and the product.
  3. Numeric placeholders
    A program that prints out numbers on the screen using different formatted placeholders.
  4. Inputting characters
    A program that asks the user for 4 characters and displays them on the screen.
  5. The circle program (from keyboard)
    A program that ases the user for the diameter of a circle and prints out its circumference and area.
  6. The circle program (from a text file)
    A program that reads from a file the diameter of a circle and prints out its circumference and area.
  7. The assignment operator (=)
    A program that makes a few changes in variable values using the assignment operator.
  8. Input and output files
    A program that reads 3 numbers from one file, 2 more numbers from another file, sums them all up and display the sum on the screen and places the sum in a new file.
  9. Maximum values
    A program that displays the maximum values allowed in int and double variables on a particular system.
Ihypress.ca is online since February 17, 2005.
 
[ Die Jugend der 60er Jahre tanzte wie verrueckt zu den Rockabilly Singles . | | ]