From 5ee1689e06051ad0de58c8e33b579f35223a257a Mon Sep 17 00:00:00 2001 From: Mishthi Nagpal Date: Fri, 25 Oct 2024 14:24:34 +0530 Subject: [PATCH] Mishthi Nagpal I am in first year of B.Tech Computer Science in UPES, Dehradaun. I am an introvert person so i feel introverted nature might just be the secret superpower, fueling the passions and talents! --- a.exe | Bin 0 -> 41534 bytes bubble_sort.c | 41 ++++++++++++++++++++++++++++++++++++++ factorial_via_recursion.c | 21 +++++++++++++++++++ first_letter.c | 11 ++++++++++ matrix_det.c | 19 ++++++++++++++++++ palindrome.c | 34 +++++++++++++++++++++++++++++++ 6 files changed, 126 insertions(+) create mode 100644 a.exe create mode 100644 bubble_sort.c create mode 100644 factorial_via_recursion.c create mode 100644 first_letter.c create mode 100644 matrix_det.c create mode 100644 palindrome.c diff --git a/a.exe b/a.exe new file mode 100644 index 0000000000000000000000000000000000000000..3ab44abae4b3eabdc58166cf5ce7af65981b493c GIT binary patch literal 41534 zcmeHw3w#t+miMiGkcNa*0zpwx8z(3z1cHE|LA#T59+H=N@DQ-bqeCKjnN;&okzjWm zYTL{*GrHr>I^W9R%;)a9jx)lprUq97>Drz0UZ1LpIcR3UFqO_ zyWjqP-#(_Gx^A6&&bjBDd+xc9s=6t@b33y##%wqv5yp1oN{5U8e*I4;vXifVKAG(r z``XmqLeXneD;pX+oNeu`Yul@vowe01Ev>S%#_MeNwKyAFoVleH&gRxSZ^roXENe)!cybdj*Gcdva1!3_IAadNo1LjD!bN`;nS@sqgM_4uxw2=^UBrPAGGH&xt8kX! zj5%B^C42U~Ob(eX;Bo>d@oT~vb8x)*^EqTc;hn}wcr6?h{o!~EZsPZbsqqm0Pl?g);dr@DJ^7b^=VOH;{wuMt106OAl%;d%r!q71LYk8-B_ z#p{TE@s(VyD!^hSAoW5AKmoPn6;LTKj}UBJZ%u;mHvrnM*+7Sh8lTvbw}KDQsI*XX ziY~>6U#TT(n7qVgRO0?f_<%W&8~GM3@1K#^Enmwt`Ky!Ffh0P(DX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#YckGqsMGtf2Cw+oddEOo}(@#3vd4+Q#7q(*f% zc&poDt66O->LQfdQuN(Vwc=qB?6Ruw^-2yN4?%xH)lM6!Xf0Q*py&>u8ZUiOkyylT zJ4fqg=r(Op&iT!L^J4~L(717?6)X<}wpi21U4qJ)DG&*o;Y_7(pGql&1 zYI$u_R_X@%{=4etAM}@VD8DFXvs!YBk*bXhRfYKYP1ht^c+^`^{KYE|rJ>8wwqDg# zF~zWGd|^_|PQct%b^phoJmB@xN(2d$gHf=)(x@e%M;IBIvO)qpwed{Okuvm*Q!VPukBdP172M`ZCJ-e z{c}Tvi~Pwhy|+|@O>9p|n;X%e{le~kYER6I(RWhDCs$})+DH>^kT3CQCebES)Rr37 zb;#@REhi+_gUmW_dyBUTTYOXl7~7a)d{TP=q(@SthGPZf@i+|qFkkTi literal 0 HcmV?d00001 diff --git a/bubble_sort.c b/bubble_sort.c new file mode 100644 index 0000000..d091ead --- /dev/null +++ b/bubble_sort.c @@ -0,0 +1,41 @@ +#include +int main() +{ + int n; + printf("enter the number of elements in the array: "); + scanf("%d",&n); + int arr[n]; + printf("enter the elements in the array:\n"); + for(int i=0; i arr[j+1]) + { + temp=arr[j]; + arr[j]= arr[j+1]; + arr[j+1]=temp; + swapped=1; + } + } + if(swapped == 0) + { + break; + } + + } + printf("Sorted array:\n"); + for(int i=0; i +int factorial(int n); +int main() +{ + int n; + printf("Enter a number: "); + scanf("%d",&n); + printf("Factorial of %d: %d",n,factorial(n)); + return 0; +} +int factorial(int n) +{ + if (n >= 1) + { + return n*factorial(n-1); + } + else + { + return 1; + } +} \ No newline at end of file diff --git a/first_letter.c b/first_letter.c new file mode 100644 index 0000000..083557f --- /dev/null +++ b/first_letter.c @@ -0,0 +1,11 @@ +#include +int main() +{ + char word[100]; + printf("Enter a sentence: "); + while(scanf("%s",word) == 1) + { + printf("%c\n",word[0]); + } + return 0; +} \ No newline at end of file diff --git a/matrix_det.c b/matrix_det.c new file mode 100644 index 0000000..9161b95 --- /dev/null +++ b/matrix_det.c @@ -0,0 +1,19 @@ +#include +int main() +{ + int matrix[2][2]; + int det; + printf("Enter the elements of the 2 x 2 matrix:\n"); + for(int i=0; i<2; i++) + { + for(int j=0; j<2; j++) + { + printf("element [%d][%d]:",i+1, j+1); + scanf("%d",&matrix[i][j]); + } + } + det = (matrix[0][0] * matrix[1][1]) - (matrix[0][1] * matrix[1][0]); + + printf("Determinant:%d\n",det); + return 0; +} \ No newline at end of file diff --git a/palindrome.c b/palindrome.c new file mode 100644 index 0000000..89f277a --- /dev/null +++ b/palindrome.c @@ -0,0 +1,34 @@ +#include +#include +int main() +{ + char str[100]; + char orstr[100]; + char arstr[100]; + + + printf("enter a string: "); + scanf("%s",str); + strcpy(orstr,str); + strcpy(arstr,str); + int first = 0; + int last = strlen(str)-1; + char x; + while(first < last) + { + x = arstr[first]; + arstr[first] = arstr[last]; + arstr[last] = x; + first++; + last--; + } + int val = strcmp(orstr,arstr); + if(val == 0) + { + printf("string is palindrome"); + } + else + { + printf("string is not palindrome"); + } +} \ No newline at end of file