diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:45 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:45 -0700 |
| commit | a33d49ac4d1ce554c72770927957a089b4023bf1 (patch) | |
| tree | 17ea036b5a0e8b488dc236f0ce48a275ecd80ef8 /cpp/print.cpp | |
Diffstat (limited to 'cpp/print.cpp')
| -rw-r--r-- | cpp/print.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/print.cpp b/cpp/print.cpp new file mode 100644 index 0000000..f58b236 --- /dev/null +++ b/cpp/print.cpp @@ -0,0 +1,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; +} + |
