FIGURE THAT OUT, SMART GUY!
a = 6,000,000,000
b = 1.5
Actually, I heard it was a = -6,000,000,000 b = -1.5
#include <iostream>
using namespace std;
int main ()
{
for(b = .5; b < 4000000000 ; b = b + .5)
{
a = 4000000000 / b;
cout << "A is:" <<a<< " B is:" <<b<<;
}
return 0;
}
Code:#include <iostream> using namespace std; int main () { for(b = .5; b < 4000000000 ; b = b + .5) { a = 4000000000 / b; cout << "A is:" <<a<< " B is:" <<b<<; } return 0; }
That will give every possible answer with a .5 incrament up to 4,000,000,000
What do i win?
Not every possible answer though...
I award you with the Perfect Prime Silver Medal of Mediocrity.
read! Every possible answer with a .5 increment
#include <iostream>
using namespace std;
int main ()
{
long double a;
long double b;
for(b = .000001; b < 4000000000 ; b = b + 000001)
{
a = 4000000000 / b;
cout << "A is:" <<a<< " B is:" <<b<<;
}
return 0;
}
Code:#include <iostream> using namespace std; int main () { long double a; long double b; for(b = .000001; b < 4000000000 ; b = b + 000001) { a = 4000000000 / b; cout << "A is:" <<a<< " B is:" <<b<<; } return 0; }
Hows that? better.... i even declared the variables this time *coff* *coff*
#include <iostream>
using namespace std;
int main ()
{
X = 0.1
for(b = X; b < 4000000000 ; b = b + X)
{
a = 4000000000 / b;
cout << "A is:" <<a<< " B is:" <<b<<;
}
return 0;
Else {
X = X/10;
}
return 0;
}
#include <iostream>
using namespace std;
int main ()
{
int a = 1;
int b = 1;
int i = 1;
while(i > 0)
{
cout << a+b;
a = a+b;
b = a*b;
}
return 0;
}
There infinite answers.Code:#include <iostream> using namespace std; int main () { int a = 1; int b = 1; int i = 1; while(i > 0) { cout << a+b; a = a+b; b = a*b; } return 0; }
It wont stop