blob: f58b2368bc0625a5110d693904ccd46dc2b2ca50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <iostream>
#include <string>
using namespace std;
int main() {
int x;
string y = "this is stored as a string";
cout << "enter 1 to start: ";
cin >> x;
if (x = 1) {
for (float n = 0; n < 10; n += 0.000000001) {
cout << n << " " << endl;
}
}
return 0;
}
|