From 7b21727285e50b0b050c4ddd70d07542229c5366 Mon Sep 17 00:00:00 2001 From: pants Date: Mon, 21 Sep 2026 14:17:03 -0700 Subject: init --- cpp/print.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cpp/print.cpp (limited to 'cpp/print.cpp') 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 +#include +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; +} + -- cgit v1.2.3