diff --git a/Rotate for a Max/rotate_for_a_max.cpp b/Rotate for a Max/rotate_for_a_max.cpp new file mode 100644 index 0000000..9568657 --- /dev/null +++ b/Rotate for a Max/rotate_for_a_max.cpp @@ -0,0 +1,26 @@ +#include + +class MaxRotate +{ +public: + static long long maxRot(long long n); + static void getNums(long long input); + static long long getValueFromDigits(std::vector &digits); + + static void getNums(std::vector &digits, long long input){ + if (input > 9) { + getNums(digits, input / 10); + } + digits.push_back(input % 10); + } + + static long long getValueFromDigits(std::vector &digits){ + for(auto &i : digits){ + + } + } + + static long long maxRot(long long n){ + + } +}; \ No newline at end of file diff --git a/find_the_integral/find_the_integral.c b/find_the_integral/find_the_integral.c new file mode 100644 index 0000000..b43531b --- /dev/null +++ b/find_the_integral/find_the_integral.c @@ -0,0 +1,3 @@ +char *integrate(int coefficient, int exponent) { + return "Bart"; +} \ No newline at end of file diff --git a/hello_world/data_sizes.c b/hello_world/data_sizes.c index fae5241..cc45d71 100644 --- a/hello_world/data_sizes.c +++ b/hello_world/data_sizes.c @@ -20,6 +20,14 @@ int main(int argc, char** argv) { printf("UINT_MAX : %u\n", (unsigned int) UINT_MAX); printf("ULONG_MAX : %lu\n", (unsigned long) ULONG_MAX); printf("USHRT_MAX : %d\n", (unsigned short) USHRT_MAX); - + printf("Storage size for float : %d \n", sizeof(float)); + printf("FLT_MAX : %g\n", (float) FLT_MAX); + printf("FLT_MIN : %g\n", (float) FLT_MIN); + printf("-FLT_MAX : %g\n", (float) -FLT_MAX); + printf("-FLT_MIN : %g\n", (float) -FLT_MIN); + printf("DBL_MAX : %g\n", (double) DBL_MAX); + printf("DBL_MIN : %g\n", (double) DBL_MIN); + printf("-DBL_MAX : %g\n", (double) -DBL_MAX); + printf("Precision value: %d\n", FLT_DIG ); return 0; } \ No newline at end of file