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

This is a discussion on Logic trainer, fill the boxe >summation of two previous numbers within the C Programming forums, part of the General Programming Boards category; The program adds a couple (two nums) and stores them in the field above them. it continues till the last ...

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    10

    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
    Epy
    Epy is offline
    Fortran lover Epy's Avatar
    Join Date
    Sep 2009
    Location
    California, USA
    Posts
    963
    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 Cprogramming.com
    Replies: 7
    Last Post: 12-03-2002, 10:15 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21