diff --git a/c_cpp/README.md b/c_cpp/README.md deleted file mode 100644 index 9c558e3..0000000 --- a/c_cpp/README.md +++ /dev/null @@ -1 +0,0 @@ -. diff --git a/c_cpp/limits-intfloat.cpp b/c_cpp/limits-intfloat.cpp deleted file mode 100644 index c048169..0000000 --- a/c_cpp/limits-intfloat.cpp +++ /dev/null @@ -1,34 +0,0 @@ -#include -#include -#include - -int main() { - std::cout << "Check the upper and lower limits of integer :\n"; - std::cout << "--------------------------------------------------\n"; - std::cout << "The maximum limit of int data type : " << INT_MAX << std::endl; - std::cout << "The minimum limit of int data type : " << INT_MIN << std::endl; - std::cout << "The maximum limit of unsigned int data type : " << UINT_MAX << std::endl; - std::cout << "The maximum limit of long long data type : " << LLONG_MAX << std::endl; - std::cout << "The minimum limit of long long data type : " << LLONG_MIN << std::endl; - std::cout << "The maximum limit of unsigned long long data type : " << ULLONG_MAX << std::endl; - std::cout << "The Bits contain in char data type : " << CHAR_BIT << std::endl; - std::cout << "The maximum limit of char data type : " << static_cast(CHAR_MAX) << std::endl; - std::cout << "The minimum limit of char data type : " << static_cast(CHAR_MIN) << std::endl; - std::cout << "The maximum limit of signed char data type : " << static_cast(SCHAR_MAX) << std::endl; - std::cout << "The minimum limit of signed char data type : " << static_cast(SCHAR_MIN) << std::endl; - std::cout << "The maximum limit of unsigned char data type : " << static_cast(UCHAR_MAX) << std::endl; - std::cout << "The minimum limit of short data type : " << SHRT_MIN << std::endl; - std::cout << "The maximum limit of short data type : " << SHRT_MAX << std::endl; - std::cout << "The maximum limit of unsigned short data type : " << USHRT_MAX << std::endl; - - std::cout << "\nCheck the upper and lower limits of floating-point types :\n"; - std::cout << "--------------------------------------------------\n"; - std::cout << "The maximum limit of float data type : " << FLT_MAX << std::endl; - std::cout << "The minimum limit of float data type : " << -FLT_MAX << std::endl; - std::cout << "The maximum limit of double data type : " << DBL_MAX << std::endl; - std::cout << "The minimum limit of double data type : " << -DBL_MAX << std::endl; - std::cout << "The maximum limit of long double data type : " << LDBL_MAX << std::endl; - std::cout << "The minimum limit of long double data type : " << -LDBL_MAX << std::endl; - - return 0; -} diff --git a/c_cpp/sizeof_DataType.cpp b/c_cpp/sizeof_DataType.cpp deleted file mode 100644 index 6da5428..0000000 --- a/c_cpp/sizeof_DataType.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include - -int main() { - std::cout << "Find Size of fundamental data types :\n"; - std::cout << "------------------------------------------\n"; - - std::cout << "The sizeof(char) is : " << sizeof(char) << " bytes\n"; - std::cout << "The sizeof(short) is : " << sizeof(short) << " bytes\n"; - std::cout << "The sizeof(int) is : " << sizeof(int) << " bytes\n"; - std::cout << "The sizeof(long) is : " << sizeof(long) << " bytes\n"; - std::cout << "The sizeof(long long) is : " << sizeof(long long) << " bytes\n"; - std::cout << "The sizeof(float) is : " << sizeof(float) << " bytes\n"; - std::cout << "The sizeof(double) is : " << sizeof(double) << " bytes\n"; - std::cout << "The sizeof(long double) is : " << sizeof(long double) << " bytes\n"; - std::cout << "The sizeof(bool) is : " << sizeof(bool) << " bytes\n"; - - return 0; -} diff --git a/python/README.md b/python/README.md deleted file mode 100644 index 9c558e3..0000000 --- a/python/README.md +++ /dev/null @@ -1 +0,0 @@ -. diff --git a/python/fibonacci1.py b/python/fibonacci1.py deleted file mode 100644 index ffbdece..0000000 --- a/python/fibonacci1.py +++ /dev/null @@ -1,25 +0,0 @@ -# Program to display the Fibonacci sequence up to n-th term - -nterms = int(input("How many terms? ")) - -# first two terms -n1, n2 = 0, 1 -count = 0 - -# check if the number of terms is valid -if nterms <= 0: - print("Please enter a positive integer") -# if there is only one term, return n1 -elif nterms == 1: - print("Fibonacci sequence upto",nterms,":") - print(n1) -# generate fibonacci sequence -else: - print("Fibonacci sequence:") - while count < nterms: - print(n1) - nth = n1 + n2 - # update values - n1 = n2 - n2 = nth - count += 1 diff --git a/r-lang/README.md b/r-lang/README.md deleted file mode 100644 index 9c558e3..0000000 --- a/r-lang/README.md +++ /dev/null @@ -1 +0,0 @@ -. diff --git a/rust/README.md b/rust/README.md deleted file mode 100644 index 8b13789..0000000 --- a/rust/README.md +++ /dev/null @@ -1 +0,0 @@ -