Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Mathamatics  (Read 2141 times)

0 Members and 1 Guest are viewing this topic.

nthomble

    Topic Starter


    Newbie

    Mathamatics
    « on: January 26, 2009, 07:22:34 PM »
    I can't figure out how to write this program.

    Write a program that prompts the user to enter four integers and reads all four values with a single scanf statement.  Write statements to find the square of each value.  Print the values and their squares in a labeled aligned as in the example shown below:
                Number                Square
                   5                           25
                  10                         100
                  15                         225
                  20                         400

    matsonusa



      Rookie

      Re: Mathamatics
      « Reply #1 on: January 26, 2009, 09:38:37 PM »
      Try visiting...

      http://www.cppreference.com/wiki/c/io/scanf

      and modify per your needs.

      Matt
      "How do the deer know to cross at those little yellow signs?"