Commit 5d511187 authored by s-jdoyle4's avatar s-jdoyle4
Browse files

fist commit double and float of problem 2.25

parent 3bab5ab2
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double i, ismall;
i = 1.0, ismall = 1.0+i;
while( ismall != 1.0) {
i = i/2.0;
ismall = 1.0 + i;
}
cout << i << endl;
return 0;
}
File added
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float i, ismall;
i = 1.0, ismall = 1.0+i;
while( ismall != 1.0) {
i = i/2.0;
ismall = 1.0 + i;
}
cout << i << endl;
return 0;
}
File added
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment