Thread: Logic trainer, fill the boxe >summation of two previous numbers

  1. #1
    Registered User
    Join Date
    Nov 2009

    Question Logic trainer, fill the boxe >summation of two previous numbers

    The program adds a couple (two nums) and stores them in the field above them. it continues till the last field is filled. For example, the question mark right next to 6 plus 6 equals 10 (i.e. 6+x = 10) .Use of arrays is not allowed. Use loops like for, while and getchar() ( or a better way(?) )to control the input (user enters 2 ? ? ?... or ? ? 10 ? 6... and so on). Any help on writing the code or the code itself (completely) is deeply appreciated. I need it for tomorrow afternoon. Thank you in advance for your time.

    ? 10
    ? 6 ?
    2 ? ? ?

  2. #2
    Make Fortran great again Epy's Avatar
    Join Date
    Sep 2009
    California, USA
    We won't do your assignment for you, post the code you've come up with so far.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Logical errors with seach function
    By Taka in forum C Programming
    Replies: 4
    Last Post: 09-18-2006, 05:20 AM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. the definition of a mathematical "average" or "mean"
    By DavidP in forum A Brief History of
    Replies: 7
    Last Post: 12-03-2002, 11:15 AM

Tags for this Thread