diff --git a/.gitignore b/.gitignore index 259148f..c9ee6d4 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ *.exe *.out *.app +Students/Luzhbin.DO/prac1/desktop.ini diff --git a/Students/Luzhbin.DO/prac1/Practice1.vcxproj b/Students/Luzhbin.DO/prac1/Practice1.vcxproj new file mode 100644 index 0000000..7d627ac --- /dev/null +++ b/Students/Luzhbin.DO/prac1/Practice1.vcxproj @@ -0,0 +1,119 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {ABB77552-304B-43F9-B27C-0F35689C5A99} + Practice1 + 10.0.15063.0 + + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + Application + true + v141 + MultiByte + + + Application + false + v141 + true + MultiByte + + + + + + + + + + + + + + + + + + + + + + + Level3 + Disabled + true + + + + + Level3 + Disabled + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + Level3 + MaxSpeed + true + true + true + + + true + true + + + + + + + + + \ No newline at end of file diff --git a/Students/Luzhbin.DO/prac1/Source.cpp b/Students/Luzhbin.DO/prac1/Source.cpp new file mode 100644 index 0000000..153afdc --- /dev/null +++ b/Students/Luzhbin.DO/prac1/Source.cpp @@ -0,0 +1,18 @@ +#include +using namespace std; + +int main() +{ + for (int i = 1; i < 101; i++) + { + long n = i; + if ((n % 3 != 0) & (n % 5 != 0)) { cout << (i) << endl; } + else if (n % 3 != 0) { cout << "Fizz" << endl; } + else if (n % 5 != 0) { cout << "Buzz" << endl; } + else { cout << "FizzBuzz" << endl; }; + + + } + return (0); + +} \ No newline at end of file