summaryrefslogtreecommitdiff
path: root/cpp/print.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/print.cpp')
-rw-r--r--cpp/print.cpp17
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;
+}
+