From ee4f8ff3b8db01cf42f0af0ef2c6445cf5578d3d Mon Sep 17 00:00:00 2001 From: murshida223 <73747270+murshida223@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:48:43 +0530 Subject: [PATCH 1/3] Update Contributors.md --- Contributors.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Contributors.md b/Contributors.md index 272a6a58..3a800670 100644 --- a/Contributors.md +++ b/Contributors.md @@ -117,5 +117,8 @@ Name: [Muhammad Iqbal R](https://github.com/miqbalrr)
Place: Indonesia
About: BACKEND Developer
+Name: [Murshida](https://github.com/murshida223)
+Place: india
+About: plus two student
From 6475f34dda2aa581083f2f9c8c120863c145a76b Mon Sep 17 00:00:00 2001 From: murshida223 <73747270+murshida223@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:51:00 +0530 Subject: [PATCH 2/3] Create palindrome.cpp --- C++/palindrome.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 C++/palindrome.cpp diff --git a/C++/palindrome.cpp b/C++/palindrome.cpp new file mode 100644 index 00000000..64841a3f --- /dev/null +++ b/C++/palindrome.cpp @@ -0,0 +1,28 @@ +#include +using namespace std; + +int main() +{ + int n, num, digit, rev = 0; + + cout << "Enter a positive number: "; + cin >> num; + + n = num; + + do + { + digit = num % 10; + rev = (rev * 10) + digit; + num = num / 10; + } while (num != 0); + + cout << " The reverse of the number is: " << rev << endl; + + if (n == rev) + cout << " The number is a palindrome."; + else + cout << " The number is not a palindrome."; + + return 0; +} From 461b0abf9e663a57d432c47a256bb3b6bab62242 Mon Sep 17 00:00:00 2001 From: murshida223 <73747270+murshida223@users.noreply.github.com> Date: Sat, 31 Oct 2020 19:52:46 +0530 Subject: [PATCH 3/3] create factorial --- C/factorial.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 C/factorial.c diff --git a/C/factorial.c b/C/factorial.c new file mode 100644 index 00000000..1663258b --- /dev/null +++ b/C/factorial.c @@ -0,0 +1,12 @@ +#include +int main() +{ + int i,fact=1,number; + printf("Enter a number: "); + scanf("%d",&number); + for(i=1;i<=number;i++){ + fact=fact*i; + } + printf("Factorial of %d is: %d",number,fact); +return 0; +}