Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Programming introduction / Homeworks / homework1.cpp
diff options
context:
space:
mode:
Commit624518fd555b54bcf8719786559861d9d6125ffc (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-11-24 17:46:39 +0200
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2021-11-24 17:46:39 +0200
Filescf045681f647f4ed19ebec751e2f20f41641d9dd /Year 1/Programming introduction/Homeworks/homework1.cpp
uni-projects-624518fd555b54bcf8719786559861d9d6125ffc.tar
uni-projects-624518fd555b54bcf8719786559861d9d6125ffc.tar.gz
uni-projects-624518fd555b54bcf8719786559861d9d6125ffc.zip
Parente30eed631d2930570f5cc7355826c8854f3ac265 (diff)
Minor formatting adjustments
1 files changed, 5 insertions, 5 deletions
-rw-r--r--Year 1/Programming introduction/Homeworks/homework1.cpp10
diff --git a/Year 1/Programming introduction/Homeworks/homework1.cpp b/Year 1/Programming introduction/Homeworks/homework1.cpp
index a986744..c267a24 100644
--- a/Year 1/Programming introduction/Homeworks/homework1.cpp
+++ b/Year 1/Programming introduction/Homeworks/homework1.cpp
@@ -1,4 +1,4 @@
-#include <iostream> // cin, cout
+#include <iostream> // cin, cout, endl
#include <cmath> // fabs, sqrt
#include <stdlib.h> // rand, srand
@@ -166,9 +166,9 @@ void ex2()
unsigned int blueberryMarmalades = 0, peachMarmalades = 0, rosehipMarmalades = 0;
readCodesAndCountMarmalades(archiveLength, &blueberryMarmalades, &peachMarmalades, &rosehipMarmalades);
- cout << "Мармалад от боровинки: " << blueberryMarmalades << endl;
- cout << "Мармалад от праскови: " << peachMarmalades << endl;
- cout << "Шипков мармалад: " << rosehipMarmalades << endl;
+ cout << "Blueberry marmalades: " << blueberryMarmalades << endl;
+ cout << "Peach marmalades: " << peachMarmalades << endl;
+ cout << "Rosehip marmalades: " << rosehipMarmalades << endl;
}
/*
@@ -326,7 +326,7 @@ void playBullsAndCows()
}
}
- cout << "You lose! The number was " << secNum << " and you couldn't guess it in " << N << "guesses!" << endl;
+ cout << "You lose! The number was " << secNum << " and you couldn't guess it in " << N << " guesses!" << endl;
}
void ex4()