Jump to content
BrainDen.com - Brain Teasers
  • 0


Guest
 Share

Question

Find my system, It's three operations to get the answer. Two extra set numbers are brought into the system to assist with the result. As stated, these two other numbers are static variables. They affect all numbers similarly. Three examples will be given, one added daily. Let's see how this goes.

5 {} 9 = 46.667

10 {} 8 = 60

90 {} 30 = 400

15 {} 30 = ?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

#include <iostream>

#include <cstdio>

#include <cstdlib>

using namespace std;

int main()

{

string cont = "y";

for(;cont == "y";)//brainden is replacing part of the program formulated with ; followed by ).

{

double one;

double two;

cout << "Input1: ";

cin >> one;

cout << "Input2: ";

cin >> two;

one += two;

one = one * 10;

one = one/3;

cout << one;

cout << endl;

cout << "continue? y/n: ";

cin >> cont;

}

return 0;

}

For anyone who didn't understand the answer, heres the program I wrote to perform the operation. It really is kind of simple.

Edited by Darth Legion
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...