bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

commit 9244b8c6acb9646ef682fa7329d16d5b02066304
parent ef10c588088cb5142c3934ac58f56b7c9f550945
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Thu,  4 Jun 2026 22:31:48 +0530

shifted to VitePress

Diffstat:
M.github/workflows/main.yml | 83++++++++++++++++++++++++++++++++++++++++---------------------------------------
M.gitignore | 17++++++++++++++++-
Ddocs-new/.pages | 8--------
Adocs-new/.vitepress/config.mts | 96+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adocs-new/.vitepress/theme/CodePage.vue | 152+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adocs-new/.vitepress/theme/env.d.ts | 8++++++++
Adocs-new/.vitepress/theme/index.ts | 11+++++++++++
Adocs-new/.vitepress/theme/style.css | 195+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adocs-new/.vitepress/tsconfig.json | 11+++++++++++
Mdocs-new/CODE_OF_CONDUCT.md | 2+-
Mdocs-new/CONTRIBUTING.md | 5+++--
Mdocs-new/LICENSE.md | 5+++--
Mdocs-new/SECURITY.md | 4+---
Mdocs-new/credits.md | 8+++-----
Mdocs-new/faq.md | 36+-----------------------------------
Mdocs-new/index.md | 113+++++++++++++++++++++++++++++++++++++++++--------------------------------------
Ddocs-new/overrides/main.html | 175-------------------------------------------------------------------------------
Adocs-new/public/logo.svg | 2++
Adocs-new/public/logo_large.svg | 2++
Mdocs-new/quickstart.md | 31++++++-------------------------
Mdocs-new/semester_1/R/Code/R_Code-1.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-10.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-11.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-12.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-13.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-14.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-15.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-2.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-4.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-5.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-6.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-7.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-8.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Code-9.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Prac-1.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Prac-2.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Prac-3.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Prac-4.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Prac-5.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_Prac-6.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/Code/R_code-3.md | 67+++++++++++++++----------------------------------------------------
Mdocs-new/semester_1/R/temp.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-01.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-02.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-03.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-04.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-05.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-06.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-07.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-08.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-09.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-10.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-11.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-12_v1.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-12_v2.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-13.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-14_v1.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-14_v2.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-primary/assignment-p-15.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-01.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-02.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-03.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-04.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-05.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-06.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-07.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-08.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-09.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-10.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-11.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-12.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-13-1.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-13-2.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-14.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-15.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-16.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-17.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-18.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-19.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-20.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-21.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-22.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-23.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/assignment-secondary/assignment-s-24.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/index.md | 31+++++++++++--------------------
Mdocs-new/semester_1/internal-practice/IP-01.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-02.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-03.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-04.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-05.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-06.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-07.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-08.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-09.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-10.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-11.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-12.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-13.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-14.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-15.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-16.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-17.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-18.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-19.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/internal-practice/IP-20.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/khurapati-idea/KI001.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/khurapati-idea/KI002.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/khurapati-idea/KI003.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/khurapati-idea/KI004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc001.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc002.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc003.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc006.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc008.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc009.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc010.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc011.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc012.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc013.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc014.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc015.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc016.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc017.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc018-logic.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc018.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc019.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc020.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc021.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc022.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc023.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc024.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc025.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc026.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc027.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/letusc/luc028.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc029.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc030.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc031-logic.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc031.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc032.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc033.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc034.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc035.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc036.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc037.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc038.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc039.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc040-logic.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc040.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc041.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc042.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc043.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc044.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc045.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc046.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc047.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc048.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc049.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc050.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc051.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc052.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc053.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc054.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc055.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc056.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc057.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc058.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc059.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc060.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc061.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc062.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc063.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc064.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc065.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc066.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc067.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc068.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc069.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc070.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc071.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc072.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc073.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc074.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc075.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc076.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc077.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc078.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc079.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc080.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc081.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc082.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc083.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc084.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc085.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc086.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc087.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc088.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc089.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc090.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc091.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc092.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc093.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc094.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc095.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc096.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc097.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc098.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc099.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc100.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc101.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc102.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc103.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc104.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc105.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc106.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc107.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc108.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc109.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc110.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc111.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc112.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc113.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc114.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc115.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc116.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc117.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/luc118.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/luc119.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem001.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem002.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem003.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem006.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem008.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem009.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem010-complex.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem010.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem011.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem012.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem013.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem014-short.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem014.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem015.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/letusc/lucproblem016.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/model_questions.md | 29+++++++++++++++--------------
Mdocs-new/semester_1/practice-c/external_1.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/practice-c/external_2.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/practice-c/external_3.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/practice-c/external_4.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/practice-c/external_5.md | 52++++++----------------------------------------------
Adocs-new/semester_1/practice-c/external_6.md | 39+++++++++++++++++++++++++++++++++++++++
Adocs-new/semester_1/practice-c/external_7.md | 31+++++++++++++++++++++++++++++++
Adocs-new/semester_1/practice-c/external_8.md | 32++++++++++++++++++++++++++++++++
Mdocs-new/semester_1/practice-c/index.md | 77++++++++++++++++++++++++++++++++++++++++-------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-01.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-02.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-03.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-04.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-05.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-06.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-07.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-08.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-09.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-10.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-11.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-12.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-13.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-14.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-15.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-16.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-17.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-18.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-19.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc-ip-20.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc001.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc002.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc003.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc006.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc008.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc009.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc010.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc011.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc012.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc013.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc014.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc015.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/practice-c/pc016.md | 78+++++++++++++++++++++---------------------------------------------------------
Mdocs-new/semester_1/practice-c/pc017.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/temp/maheswar01.md | 54+++++++-----------------------------------------------
Mdocs-new/semester_1/temp/maheswar02.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/temp/sudipto1.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/temp/sudiptoown01.md | 52++++++----------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-001.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-002.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-003.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-006.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-008.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-009.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-010.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-011.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-012.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-013.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-014.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-015.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-016.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-017.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-018.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-019.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-020.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-021.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-022.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-023.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-024.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-025.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-026.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-027.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-028.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-029.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-030.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-031.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-032.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-033.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-034.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-035.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-036.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-037.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-038.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-039.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-040.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-041.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-PRAC-042.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-001.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-002.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-003.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-006.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-008.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-009.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-010.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-011.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-012.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-013.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-S-014.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-001.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-002.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-003.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-004.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-006.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/APC-SPS-008.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P001.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/P002.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/P003.md | 62+++++++++++---------------------------------------------------
Mdocs-new/semester_1/tuition-c/P004.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P005.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P006.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P007.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P008.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P009.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P010.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P011.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P012.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P013.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P014.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P015.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P016.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P017.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P018.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P019.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P020.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P021.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P022.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P023.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P024.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P025.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P026.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P027.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P028.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P029.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P030.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P031.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P032.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P033.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P034.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P035.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P036.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P037.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P038.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P039.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P040.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P041.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P042.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P043.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P044.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P045.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P046.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P047.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P048.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P049.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P050-SHORT.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P050.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P051.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P052.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P053.md | 73++++++++++++++++++-------------------------------------------------------
Mdocs-new/semester_1/tuition-c/P054.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P055.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P056.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P057.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P058.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P059.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P060.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P061.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P062.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P063.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P064.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P065.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P066.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P067.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P068.md | 70+++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P069.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_1/tuition-c/P070.md | 69++++++++++++++++-----------------------------------------------------
Mdocs-new/semester_2/index.md | 25++++++++++++-------------
Mdocs-new/semester_3/index.md | 25++++++++++++-------------
Mdocs-new/semester_4/index.md | 25++++++++++++-------------
Mdocs-new/semester_5/index.md | 25++++++++++++-------------
Mdocs-new/semester_6/index.md | 25++++++++++++-------------
Mdocs-new/semester_7/index.md | 25++++++++++++-------------
Mdocs-new/semester_8/index.md | 25++++++++++++-------------
Ddocs-new/stylesheets/custom-colors.css | 6------
Ddocs-new/stylesheets/extra.css | 283-------------------------------------------------------------------------------
Ddocs-new/stylesheets/logo.png | 0
Ddocs-new/stylesheets/logo.svg | 2--
Mdocs-new/terms.md | 34+---------------------------------
Mmd.py | 279++++++++++++++++++++++++++++++++-----------------------------------------------
Apackage-lock.json | 2748+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Apackage.json | 11+++++++++++
RSOCIAL_PREVIEW.md -> utils/SOCIAL_PREVIEW.md | 0
Rmkdocs.yml -> utils/mkdocs.yml | 0
458 files changed, 10487 insertions(+), 22969 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml @@ -1,63 +1,63 @@ -name: Build and Deploy Docs +name: Build and Deploy BSc Code Index on: push: branches: - main - paths-ignore: - - 'docs/**' - workflow_dispatch: + workflow_dispatch: permissions: - contents: write + contents: read + pages: write + id-token: write + +concurrency: + group: pages + cancel-in-progress: false jobs: - build-docs: + build: runs-on: ubuntu-latest steps: - - name: Checkout repository + - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 # needed for lastUpdated via git history - - name: Set up Python + - name: Setup Python uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: '3.12' - - name: Install Zensical and Plugins + - name: Generate markdown files run: | - pip install zensical - pip install mkdocs-awesome-pages-plugin + python list.py + python md.py - - name: Run Python Generator Scripts - run: | - python list.py - python md.py + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm - - name: Delete old docs folder - run: rm -rf docs + - name: Install dependencies + run: npm ci - - name: Build Zensical site - run: zensical build + - name: Build VitePress + run: npm run docs:build - - name: Rename 'site' to 'docs' - run: | - mv site docs - echo "code.amit.is-a.dev" > docs/CNAME + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: docs-new/.vitepress/dist - - name: Commit and Push changes - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - - git add docs/ docs-new/ - - if ! git diff --cached --quiet; then - git commit -m "chore: auto-generate GitHub Pages docs" - - git pull --rebase origin main - - git push - echo "Successfully built and pushed new docs folder." - else - echo "No changes to docs detected, skipping commit." - fi + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + needs: build + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4+ \ No newline at end of file diff --git a/.gitignore b/.gitignore @@ -1,5 +1,19 @@ .vscode/ .cache/ site/ -*.exe list.txt +docs-new/.vitepress/dist/ +docs-new/.vitepress/cache/ +node_modules/ +*.exe +*.o +*.out +*.dll +*.a +.Rhistory +.RData +.Ruserdata +__pycache__/ +*.py[cod] +.DS_Store +Thumbs.db+ \ No newline at end of file diff --git a/docs-new/.pages b/docs-new/.pages @@ -1,7 +0,0 @@ -nav: - - Home: index.md - - ... - -ignore: - - overrides - - stylesheets - \ No newline at end of file diff --git a/docs-new/.vitepress/config.mts b/docs-new/.vitepress/config.mts @@ -0,0 +1,96 @@ +import { defineConfig } from 'vitepress' +import { withSidebar } from 'vitepress-sidebar' + +const vitePressConfig = { + title: 'BSc Code Index', + description: 'C programming assignments, indexed and documented.', + + head: [ + ['link', { rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }], + // 👇 ADD THESE THREE LINES 👇 + ['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }], + ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }], + ['link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap' }] + ] as [string, any][], + + lastUpdated: true, + + transformPageData(pageData) { + if (pageData.title) { + pageData.title = pageData.title + .replace(/[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu, '') + .replace(/<[^>]*>?/gm, '') + .trim(); + } + }, + + themeConfig: { + logo: '/logo.svg', + + nav: [ + { text: 'Home', link: '/' }, + { text: 'Terms', link: './terms'}, + { text: 'Quick Start', link: './quickstart'}, + { text: 'Repository', link: 'https://github.com/notamitgamer/bsc' }, + { text: 'License', link: 'https://github.com/notamitgamer/bsc/blob/main/LICENSE'}, + ], + + socialLinks: [ + { icon: 'github', link: 'https://github.com/notamitgamer/bsc' }, + ], + + footer: { + message: 'Released under the MIT License.', + copyright: 'Copyright © 2025 – Present <a href="https://amit.is-a.dev">Amit Dutta</a>', + }, + + search: { + provider: 'local', + options: { + // Search through description (problem statement) and title + _render(src: string, env: any, md: any) { + const html = md.render(src, env) + if (env.frontmatter?.description) { + return env.frontmatter.description + ' ' + html + } + return html + } + } + }, + + editLink: { + pattern: 'https://github.com/notamitgamer/bsc/edit/main/docs-new/:path', + text: 'Edit this page on GitHub', + }, + + lastUpdated: { + text: 'Last updated', + formatOptions: { + dateStyle: 'medium', + timeStyle: 'short', + } + }, + }, + + markdown: { + lineNumbers: true, + }, +} + +const sidebarConfig = { + documentRootPath: 'docs-new', + collapsed: true, + collapseDepth: 1, + useTitleFromFrontmatter: true, + useTitleFromFileHeading: true, + useFolderTitleFromIndexFile: true, + useFolderLinkFromIndexFile: true, + excludeFiles: ['tags.md'], + excludeFolders: ['stylesheets', 'overrides', 'assets', '.vitepress'], + sortMenusByName: true, + sortMenusOrderNumerically: true, + underscoreToSpace: true, + capitalizeFirst: true, +} + +export default defineConfig(withSidebar(vitePressConfig, sidebarConfig)) diff --git a/docs-new/.vitepress/theme/CodePage.vue b/docs-new/.vitepress/theme/CodePage.vue @@ -0,0 +1,151 @@ +<template> + <div class="bsc-page"> + + <!-- Header --> + <div class="bsc-header"> + <div class="bsc-header-top"> + <div class="bsc-file-icon"> + <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/> + <polyline points="14 2 14 8 20 8"/> + <line x1="10" y1="13" x2="14" y2="13"/> + <line x1="10" y1="17" x2="14" y2="17"/> + <line x1="10" y1="9" x2="12" y2="9"/> + </svg> + </div> + <h1 class="bsc-filename"><code>{{ fm.title }}</code></h1> + </div> + + <!-- Metadata grid --> + <div class="bsc-meta"> + <div v-if="fm.lang" class="bsc-meta-row"> + <span class="bsc-meta-icon"> + <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/> + </svg> + </span> + <span class="bsc-meta-key">Lang</span> + <span class="bsc-meta-val">{{ fm.lang }}</span> + </div> + <div v-if="fm.author" class="bsc-meta-row"> + <span class="bsc-meta-icon"> + <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/> + <circle cx="12" cy="7" r="4"/> + </svg> + </span> + <span class="bsc-meta-key">Author</span> + <span class="bsc-meta-val">{{ fm.author }}</span> + </div> + <div v-if="fm.date" class="bsc-meta-row"> + <span class="bsc-meta-icon"> + <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <rect x="3" y="4" width="18" height="18" rx="2" ry="2"/> + <line x1="16" y1="2" x2="16" y2="6"/> + <line x1="8" y1="2" x2="8" y2="6"/> + <line x1="3" y1="10" x2="21" y2="10"/> + </svg> + </span> + <span class="bsc-meta-key">Date</span> + <span class="bsc-meta-val">{{ fm.date }}</span> + </div> + <div v-if="fm.license" class="bsc-meta-row"> + <span class="bsc-meta-icon"> + <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/> + <polyline points="14 2 14 8 20 8"/> + </svg> + </span> + <span class="bsc-meta-key">License</span> + <span class="bsc-meta-val">{{ fm.license }}</span> + </div> + </div> + </div> + + <!-- Problem statement --> + <div v-if="fm.problem" class="bsc-problem"> + <div class="bsc-problem-label"> + <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/> + <polyline points="14 2 14 8 20 8"/> + <line x1="16" y1="13" x2="8" y2="13"/> + <line x1="16" y1="17" x2="8" y2="17"/> + <polyline points="10 9 9 9 8 9"/> + </svg> + Problem statement + </div> + <p>{{ fm.problem }}</p> + </div> + + <!-- Actions --> + <div class="bsc-actions"> + <a :href="fm.raw_url" target="_blank" rel="noopener" class="bsc-btn bsc-btn-primary"> + <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/> + <polyline points="14 2 14 8 20 8"/> + </svg> + Raw + </a> + <a :href="fm.github_url" target="_blank" rel="noopener" class="bsc-btn"> + <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/> + </svg> + View on GitHub + </a> + <button class="bsc-btn" @click="copyUrl"> + <svg v-if="!copied" xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <rect x="9" y="9" width="13" height="13" rx="2" ry="2"/> + <path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/> + </svg> + <svg v-else xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" + fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> + <polyline points="20 6 9 17 4 12"/> + </svg> + {{ copied ? 'Copied!' : 'Copy URL' }} + </button> + </div> + + <!-- Page slot — renders the markdown content (code block) below --> + <slot /> + + </div> +</template> + +<script setup lang="ts"> +import { ref } from 'vue' +import { useData } from 'vitepress' + +const { frontmatter: fm } = useData() +const copied = ref(false) + +function copyUrl() { + navigator.clipboard.writeText(window.location.href) + .then(() => { + copied.value = true + setTimeout(() => { copied.value = false }, 1800) + }) + .catch(() => { + // fallback + const ta = document.createElement('textarea') + ta.value = window.location.href + ta.style.position = 'fixed' + ta.style.opacity = '0' + document.body.appendChild(ta) + ta.focus() + ta.select() + try { document.execCommand('copy') } catch {} + document.body.removeChild(ta) + copied.value = true + setTimeout(() => { copied.value = false }, 1800) + }) +} +</script>+ \ No newline at end of file diff --git a/docs-new/.vitepress/theme/env.d.ts b/docs-new/.vitepress/theme/env.d.ts @@ -0,0 +1,7 @@ +declare module '*.vue' { + import type { DefineComponent } from 'vue' + const component: DefineComponent<{}, {}, any> + export default component +} + +declare module '*.css' {}+ \ No newline at end of file diff --git a/docs-new/.vitepress/theme/index.ts b/docs-new/.vitepress/theme/index.ts @@ -0,0 +1,10 @@ +import DefaultTheme from 'vitepress/theme' +import CodePage from './CodePage.vue' +import './style.css' + +export default { + extends: DefaultTheme, + enhanceApp({ app }: { app: any }) { + app.component('CodePage', CodePage) + } +}+ \ No newline at end of file diff --git a/docs-new/.vitepress/theme/style.css b/docs-new/.vitepress/theme/style.css @@ -0,0 +1,194 @@ +* { + -webkit-tap-highlight-color: transparent; +} + +.bsc-header { + margin-bottom: 1.4rem; +} + +.bsc-header-top { + display: flex; + align-items: center; + gap: 10px; + margin-bottom: 12px; +} + +.bsc-file-icon { + width: 36px; + height: 36px; + border-radius: 8px; + background-color: var(--vp-c-bg-soft); + border: 1px solid var(--vp-c-divider); + display: flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + color: var(--vp-c-text-2); +} + +.bsc-filename { + margin: 0 !important; + padding: 0 !important; + border: none !important; + font-size: 1.15rem !important; + font-weight: 500 !important; + line-height: 1.3 !important; + letter-spacing: 0 !important; +} + +.bsc-filename code { + font-size: inherit !important; + background: none !important; + padding: 0 !important; + color: var(--vp-c-text-1) !important; + border-radius: 0 !important; +} + +/* Metadata grid */ +.bsc-meta { + border-top: 1px solid var(--vp-c-divider); + padding-top: 10px; + display: grid; + grid-template-columns: 1fr 1fr; + gap: 6px 24px; +} + +@media (max-width: 540px) { + .bsc-meta { + grid-template-columns: 1fr; + } +} + +.bsc-meta-row { + display: flex; + align-items: center; + gap: 6px; +} + +.bsc-meta-icon { + display: flex; + align-items: center; + color: var(--vp-c-text-3); + flex-shrink: 0; +} + +.bsc-meta-key { + font-size: 11px; + color: var(--vp-c-text-3); + min-width: 46px; +} + +.bsc-meta-val { + font-size: 12px; + font-weight: 500; + color: var(--vp-c-text-1); +} + +/* ========================================= + BSC PAGE — PROBLEM STATEMENT +========================================= */ + +.bsc-problem { + border-left: 3px solid var(--vp-c-brand-1); + border-radius: 0 8px 8px 0; + background-color: var(--vp-c-bg-soft); + padding: 10px 14px; + margin-bottom: 1.2rem; +} + +.bsc-problem-label { + display: flex; + align-items: center; + gap: 5px; + font-size: 10px; + font-weight: 600; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--vp-c-brand-1); + margin-bottom: 5px; +} + +.bsc-problem p { + margin: 0; + font-size: 0.85rem; + line-height: 1.65; + color: var(--vp-c-text-1); +} + +/* ========================================= + BSC PAGE — ACTION BUTTONS +========================================= */ + +.bsc-actions { + display: flex; + gap: 8px; + flex-wrap: wrap; + margin-bottom: 1.4rem; +} + +.bsc-btn { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 7px 14px; + border-radius: 8px; + font-size: 0.82rem; + font-weight: 500; + font-family: inherit; + text-decoration: none !important; + cursor: pointer; + border: 1px solid var(--vp-c-divider); + background-color: var(--vp-c-bg); + color: var(--vp-c-text-1) !important; + transition: border-color 0.15s, background-color 0.15s; + -webkit-tap-highlight-color: transparent; + outline: none; +} + +.bsc-btn:hover { + border-color: var(--vp-c-brand-1); + background-color: var(--vp-c-bg-soft); + color: var(--vp-c-text-1) !important; +} + +.bsc-btn:active { + background-color: var(--vp-c-bg-mute); +} + +.bsc-btn-primary { + background-color: var(--vp-c-brand-1); + border-color: var(--vp-c-brand-1); + color: var(--vp-c-white) !important; +} + +.bsc-btn-primary:hover { + background-color: var(--vp-c-brand-2); + border-color: var(--vp-c-brand-2); + color: var(--vp-c-white) !important; +} + +.bsc-btn-primary:active { + background-color: var(--vp-c-brand-3); +} + +@media (hover: none) and (pointer: coarse) { + .vp-doc [class*="language-"] > button.copy { + opacity: 1 !important; + } +} + +:root { + --vp-home-hero-image-background-image: linear-gradient( + -45deg, + #ec9822 50%, + #fae6b8 50% + ); + --vp-home-hero-image-filter: blur(100px); + --vp-home-hero-name-color: transparent; + --vp-home-hero-name-background: -webkit-linear-gradient( + 120deg, + #ec9822 30%, + #fae6b8 + ); + --vp-font-family-base: 'Lexend', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; +}+ \ No newline at end of file diff --git a/docs-new/.vitepress/tsconfig.json b/docs-new/.vitepress/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "ESNext", + "moduleResolution": "bundler", + "strict": false, + "skipLibCheck": true + }, + "include": ["theme/**/*", "config.mts"] +}+ \ No newline at end of file diff --git a/docs-new/CODE_OF_CONDUCT.md b/docs-new/CODE_OF_CONDUCT.md @@ -1,5 +1,5 @@ --- -icon: lucide/handshake +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="m11 17 2 2a1 1 0 1 0 3-3"/><path d="m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4"/><path d="m21 3 1 11h-2"/><path d="M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3"/><path d="M3 4h8"/></svg> Code of Conduct' --- # Code of Conduct diff --git a/docs-new/CONTRIBUTING.md b/docs-new/CONTRIBUTING.md @@ -1,5 +1,5 @@ --- -icon: lucide/users +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><path d="M16 3.128a4 4 0 0 1 0 7.744"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><circle cx="9" cy="7" r="4"/></svg> Contributing to bsc' --- # Contributing to bsc @@ -32,4 +32,4 @@ To maintain the quality of this resource, please ensure: 4. **Commit** your work with clear descriptions. 5. Push to your fork and submit a **Pull Request**. -Thank you for helping keep this resource accurate and high-quality! +Thank you for helping keep this resource accurate and high-quality!+ \ No newline at end of file diff --git a/docs-new/LICENSE.md b/docs-new/LICENSE.md @@ -1,5 +1,5 @@ --- -icon: lucide/scale +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M12 3v18"/><path d="m19 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1"/><path d="m5 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M7 21h10"/></svg> License' --- MIT License @@ -22,4 +22,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE.+ \ No newline at end of file diff --git a/docs-new/SECURITY.md b/docs-new/SECURITY.md @@ -1,11 +1,9 @@ --- -icon: lucide/shield-check +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg> Security Policy' --- # Security Policy ---- - ## Reporting a Vulnerability or Code Error While this is a personal learning project, if you discover a security vulnerability in any of the code, I would appreciate it if you could bring it to my attention. diff --git a/docs-new/credits.md b/docs-new/credits.md @@ -1,7 +1,5 @@ --- -title: Acknowledgments -description: "A special thanks to the platforms and tools that power the BSc Code Index." -icon: lucide/hand-helping +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M11 12h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 14"/><path d="m7 18 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9"/><path d="m2 13 6 6"/></svg> Acknowledgments' --- # Acknowledgments @@ -11,7 +9,7 @@ Building and maintaining a fast, open-source code index requires reliable and ac * **[is-a.dev](https://is-a.dev)**: For providing the sleek, developer-centric domain name completely free of charge, giving this project a professional home. * **[Hugging Face](https://huggingface.co)**: For securely and reliably storing the extensive collection of raw C programming files. * **[Cloudflare](https://www.cloudflare.com/)**: For handling the backend routing, DNS, and caching, seamlessly bridging the domain to ensure Hugging Face serves the code files swiftly and securely. -* **[Firebase](https://firebase.google.com/)**: For providing lightning-fast, dependable, and free web hosting for the site's compiled static assets. -* **[MkDocs](https://www.mkdocs.org/), [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/) & [Zensical](https://zensical.org/)**: The phenomenal foundational frameworks that effortlessly transform raw Markdown files and code snippets into the beautiful, searchable, and highly responsive user interface you see today. +* **[GitHub](https://github.com/) & [GitHub Pages](https://pages.github.com/)**: For securely storing the entire open-source repository (including all code and markdown files) and providing lightning-fast, dependable web hosting for the compiled site. +* **[VitePress](https://vitepress.dev/)**: The phenomenal foundational frameworks that effortlessly transform raw Markdown files and code snippets into the beautiful, searchable, and highly responsive user interface you see today. This project thrives thanks to the generosity of these free-tier services and the incredible work of the open-source community. \ No newline at end of file diff --git a/docs-new/faq.md b/docs-new/faq.md @@ -1,103 +1,69 @@ --- -icon: lucide/table-of-contents +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M16 5H3"/><path d="M16 12H3"/><path d="M16 19H3"/><path d="M21 5h.01"/><path d="M21 12h.01"/><path d="M21 19h.01"/></svg> FAQ' --- # Frequently Asked Questions (FAQ) ---- - ## General ### 1. What is this project? A live archive of BSc Computer Science practical codes following the WBSU curriculum. ---- - ### 2. Who created this? **Amit Dutta** ---- - ### 3. Where is the source code hosted? On GitHub: <a href="https://github.com/notamitgamer/bsc">https://github.com/notamitgamer/bsc</a> ---- - ### 4. Can I use this code? Yes, under the MIT License. ---- - ### 5. Can I copy this for assignments? No. You should understand and rewrite the logic. ---- - ## Metadata ### 6. What is "Author"? The person who wrote the code. ---- - ### 7. What is "Repo"? The original source repository of the file. ---- - ### 8. What is "License"? It defines how the code can be used. ---- - ## Usage ### 9. Can I print the code? Yes. Use the **Raw** button and print from your browser. ---- - ### 10. Can I reuse this in projects? Yes, but follow the license terms. ---- - ### 11. Can I modify the code? Yes. You are encouraged to experiment and improve. ---- - ## Academic Integrity ### 12. What is academic integrity? It means doing your own work honestly. ---- - ### 13. Is copying allowed? No. Copying without understanding is discouraged. ---- - ### 14. What should I do instead? - Read the code - Understand the logic - Rewrite it yourself ---- - ## Technical ### 15. Why is something missing? The project is continuously updated. ---- - ### 16. How often is it updated? As the academic journey progresses. ---- - ### 17. Where can I report issues? On GitHub Issues: <a href="https://github.com/notamitgamer/bsc/issues">https://github.com/notamitgamer/bsc/issues</a> \ No newline at end of file diff --git a/docs-new/index.md b/docs-new/index.md @@ -1,71 +1,74 @@ --- -icon: lucide/house +layout: home + +hero: + name: "BSc Code Index" + text: "Coursework from WBSU" + tagline: Comprehensive codebase and practical archives following the 4-year NEP-CCF structure under WBSU at Acharya Prafulla Chandra College. + actions: + - theme: brand + text: Browse Semester 1 (Ongoing) + link: /semester_1/ + - theme: alt + text: View on GitHub + link: https://github.com/notamitgamer/bsc + - theme: alt + text: Browse all Sem + link: .#roadmap-progress + image: + src: /logo_large.svg + alt: logo + +features: + - title: 400+ Programs in Sem 1 + details: Just getting started! Featuring over 400 C and R source files from the first semester alone. Expect this archive to scale massively over the full 4-year degree. + - title: Searchable by Problem + details: Every page is indexed by its problem statement. Search what you need to solve, find the reference instantly. + - title: Open Source + details: MIT licensed. Free to read, reference, and contribute to. All source available on GitHub. --- -# <a href="https://github.com/notamitgamer/bsc">BSc Code Index</a> -## BSc Computer Science Honours (WBSU) +## Roadmap & Progress -This repository serves as a comprehensive, live archive of my 4-year academic journey in Computer Science at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). It contains practical implementations, assignments, and study materials following the WBSU curriculum. - ---- - -### Quick Links -* **GitHub Repo:** [@notamitgamer/bsc](https://github.com/notamitgamer/bsc) -* **Web View** [notamitgamer.github.io/bsc/](https://notamitgamer.github.io/bsc/) -* **Web View:** [amit.is-a.dev/bsc](https://amit.is-a.dev/bsc) -* **Live Portfolio:** [amit.is-a.dev](https://amit.is-a.dev) -* **GitHub Profile:** [@notamitgamer](https://github.com/notamitgamer) - ---- - -## Roadmap and Progress - -!!! note "Progress" - I am currently in **Semester 1**. Folders for future semesters are placeholders and will be updated in real-time as the academic session progresses. +Currently navigating **Semester 1**. Folders for future semesters are placeholders that will automatically unlock and update in real-time as my 4-year academic session progresses. | Semester | Status | Primary Focus | -| :--- | :--- | :--- | -| [**Semester 1**](./semester_1/) | Active | **C Programming**, **R** | -| [**Semester 2**](./semester_2/) | Pending | Upcoming | -| [**Semester 3**](./semester_3/) | Pending | Upcoming | -| [**Semester 4**](./semester_4/) | Pending | Upcoming | -| [**Semester 5**](./semester_5/) | Pending | Upcoming | -| [**Semester 6**](./semester_6/) | Pending | Upcoming | -| [**Semester 7**](./semester_7/) | Pending | Upcoming | -| [**Semester 8**](./semester_8/) | Pending | Upcoming | - ---- +|:---|:---|:---| +| [Semester 1](/semester_1/) | Active | C Programming, R | +| [Semester 2](/semester_2/) | Pending | Upcoming | +| [Semester 3](/semester_3/) | Pending | Upcoming | +| [Semester 4](/semester_4/) | Pending | Upcoming | +| [Semester 5](/semester_5/) | Pending | Upcoming | +| [Semester 6](/semester_6/) | Pending | Upcoming | +| [Semester 7](/semester_7/) | Pending | Upcoming | +| [Semester 8](/semester_8/) | Pending | Upcoming | ## Environment Setup -### C and C++ Development -1. **Download Compiler:** [MinGW64.zip (85 MB)](https://amit.is-a.dev/download/MinGW64.zip) or [**Original MinGW-w64 Executable**](https://github.com/notamitgamer/bsc/releases/tag/MinGW-2021-09-05) -2. **Configuration:** Extract to `C:\MinGW64` and add `C:\MinGW64\bin` to your System Environment Variables. -3. **Verification:** Run `gcc --version` in your terminal. +### C / C++ Development + +1. Download compiler: [MinGW64.zip (85 MB)](https://amit.is-a.dev/download/MinGW64.zip) or the [original MinGW-w64 release](https://github.com/notamitgamer/bsc/releases/tag/MinGW-2021-09-05) +2. Extract to `C:\\MinGW64` and add `C:\\MinGW64\\bin` to System Environment Variables +3. Verify with `gcc --version` in your terminal ### R Programming -!!! tip "Setup Tip" - Download and install R from [CRAN](https://cran.r-project.org/) and RStudio for the best development experience. ---- +Download R from [CRAN](https://cran.r-project.org/) and use [RStudio](https://posit.co/downloads/) for the best experience. ## Academic Integrity -!!! warning "Academic Integrity" - While this code is public for reference, academic integrity is a priority. - - - **Understand the Logic** — Study the implementations to learn the underlying concepts. - - **Avoid Plagiarism** — Direct copy-pasting for college submissions is strongly discouraged. - - **Independent Implementation** — The best way to learn is to understand the logic, then rewrite it from scratch. +This repository is intended strictly for learning and reference. ---- +- Study the implementations to understand the underlying concepts +- Direct copy-pasting for college submissions is strongly discouraged +- The best approach is to understand the logic, then rewrite it yourself + +The author holds no liability for academic misconduct resulting from misuse of this content. See the [Terms of Use](/terms). + +## About + +**Amit Dutta** — [@notamitgamer](https://github.com/notamitgamer) — [amit.is-a.dev](https://amit.is-a.dev) -## About the Author - -**Amit Dutta** - -| Method | Use | -|---|---| -| Personal | [amitdutta4255@gmail.com](mailto:amitdutta4255@gmail.com) | -| Work | [mail@amit.is-a.dev](mailto:mail@amit.is-a.dev) | -| License | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) |- \ No newline at end of file +* Personal Email: [amitdutta4255@gmail.com](mailto:amitdutta4255@gmail.com) +* Work Email: [mail@amit.is-a.dev](mailto:mail@amit.is-a.dev) +* License: [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE)+ \ No newline at end of file diff --git a/docs-new/overrides/main.html b/docs-new/overrides/main.html @@ -1,174 +0,0 @@ -{% extends "base.html" %} - -{% block announce %} - By using this site, you agree to the <a href="/terms/">Terms of Use</a>. -{% endblock %} - -{% block content %} - <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css"> - - <!-- ── Desktop dropdown ── --> - <div class="custom-dropdown" id="quickActionsDropdown"> - <button class="custom-dropdown-btn" id="ddBtn" aria-haspopup="true" aria-expanded="false" onclick="toggleDropdown(event)"> - <span class="ti ti-bolt" aria-hidden="true"></span> - Quick actions - <span class="ti ti-chevron-right chevron" aria-hidden="true"></span> - </button> - <div class="custom-dropdown-content" role="menu"> - <a href="/" role="menuitem"> - <span class="ti ti-home item-icon" aria-hidden="true"></span> - <span class="item-label">Home</span> - </a> - <a href="/tags/" role="menuitem" onclick="focusSearch(event)"> - <span class="ti ti-search item-icon" aria-hidden="true"></span> - <span class="item-label">Search</span> - </a> - <div class="dropdown-divider"></div> - <div class="dropdown-section-label">Repository</div> - <a href="https://github.com/notamitgamer/bsc" target="_blank" rel="noopener" role="menuitem"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View repository</span> - </a> - <a href="https://github.com/notamitgamer/bsc/pulls" target="_blank" rel="noopener" role="menuitem"> - <span class="ti ti-git-pull-request item-icon" aria-hidden="true"></span> - <span class="item-label">Submit a PR</span> - </a> - <a href="https://github.com/notamitgamer/bsc/issues/new" target="_blank" rel="noopener" role="menuitem"> - <span class="ti ti-bug item-icon" aria-hidden="true"></span> - <span class="item-label">Report a bug</span> - <span class="item-badge">Issues</span> - </a> - <div class="dropdown-divider"></div> - <div class="dropdown-section-label">Developer</div> - <a href="https://amit.is-a.dev" target="_blank" rel="noopener" role="menuitem"> - <span class="ti ti-briefcase item-icon" aria-hidden="true"></span> - <span class="item-label">Portfolio</span> - </a> - <a href="https://github.com/notamitgamer" target="_blank" rel="noopener" role="menuitem"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">GitHub profile</span> - </a> - </div> - </div> - - <!-- ── Mobile bottom sheet ── --> - <div class="dd-backdrop" id="ddBackdrop" onclick="closeSheet()"></div> - <div class="dd-sheet" id="ddSheet" role="dialog" aria-modal="true" aria-label="Quick actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"> - <span class="ti ti-bolt" aria-hidden="true"></span> - Quick actions - </div> - <a href="/" onclick="closeSheet()"> - <span class="ti ti-home item-icon" aria-hidden="true"></span> - <span class="item-label">Home</span> - </a> - <a href="/terms" onclick="closeSheet()"> - <span class="ti ti-file-text item-icon" aria-hidden="true"></span> - <span class="item-label">terms</span> - </a> - <div class="dropdown-divider"></div> - <div class="dropdown-section-label">Repository</div> - <a href="https://github.com/notamitgamer/bsc" target="_blank" rel="noopener" onclick="closeSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View repository</span> - </a> - <a href="https://github.com/notamitgamer/bsc/pulls" target="_blank" rel="noopener" onclick="closeSheet()"> - <span class="ti ti-git-pull-request item-icon" aria-hidden="true"></span> - <span class="item-label">Submit a PR</span> - </a> - <a href="https://github.com/notamitgamer/bsc/issues/new" target="_blank" rel="noopener" onclick="closeSheet()"> - <span class="ti ti-bug item-icon" aria-hidden="true"></span> - <span class="item-label">Report a bug</span> - <span class="item-badge">Issues</span> - </a> - <div class="dropdown-divider"></div> - <div class="dropdown-section-label">Developer</div> - <a href="https://amit.is-a.dev" target="_blank" rel="noopener" onclick="closeSheet()"> - <span class="ti ti-briefcase item-icon" aria-hidden="true"></span> - <span class="item-label">Portfolio</span> - </a> - <a href="https://github.com/notamitgamer" target="_blank" rel="noopener" onclick="closeSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">GitHub profile</span> - </a> - </div> - - <script> - function toggleDropdown(event) { - event.stopPropagation(); - var dd = document.getElementById('quickActionsDropdown'); - var isOpen = dd.classList.toggle('open'); - document.getElementById('ddBtn').setAttribute('aria-expanded', isOpen); - if (window.innerWidth < 768) { - if (isOpen) { openSheet(); } else { closeSheet(); } - } - } - - function openSheet() { - var backdrop = document.getElementById('ddBackdrop'); - var sheet = document.getElementById('ddSheet'); - backdrop.style.display = 'block'; - sheet.style.display = 'block'; - document.body.style.overflow = 'hidden'; - requestAnimationFrame(function() { - backdrop.classList.add('visible'); - sheet.classList.add('visible'); - }); - } - - function closeSheet() { - var backdrop = document.getElementById('ddBackdrop'); - var sheet = document.getElementById('ddSheet'); - var dd = document.getElementById('quickActionsDropdown'); - var btn = document.getElementById('ddBtn'); - backdrop.classList.remove('visible'); - sheet.classList.remove('visible'); - dd.classList.remove('open'); - if (btn) btn.setAttribute('aria-expanded', 'false'); - document.body.style.overflow = ''; - setTimeout(function() { - backdrop.style.display = 'none'; - sheet.style.display = 'none'; - }, 300); - } - - function focusSearch(event) { - event.preventDefault(); - var input = document.querySelector('.md-search__input'); - if (input) { - input.focus(); - // Close dropdown too - document.getElementById('quickActionsDropdown').classList.remove('open'); - document.getElementById('ddBtn').setAttribute('aria-expanded', 'false'); - } - } - - if (!window.dropdownListenerAdded) { - document.addEventListener('click', function(event) { - var dd = document.getElementById('quickActionsDropdown'); - var btn = document.getElementById('ddBtn'); - if (dd && !dd.contains(event.target)) { - dd.classList.remove('open'); - if (btn) btn.setAttribute('aria-expanded', 'false'); - } - }); - - document.addEventListener('keydown', function(event) { - if (event.key === 'Escape') { - var dd = document.getElementById('quickActionsDropdown'); - var btn = document.getElementById('ddBtn'); - if (dd && dd.classList.contains('open')) { - dd.classList.remove('open'); - if (btn) { btn.setAttribute('aria-expanded', 'false'); btn.focus(); } - } - closeSheet(); - } - }); - - window.dropdownListenerAdded = true; - } - </script> - - {{ super() }} -{% endblock %}- \ No newline at end of file diff --git a/docs-new/public/logo.svg b/docs-new/public/logo.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="#FF9F1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open-text-icon lucide-book-open-text"><path d="M12 7v14"/><path d="M16 12h2"/><path d="M16 8h2"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/><path d="M6 12h2"/><path d="M6 8h2"/></svg>+ \ No newline at end of file diff --git a/docs-new/public/logo_large.svg b/docs-new/public/logo_large.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 24 24" fill="none" stroke="#FF9F1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open-text-icon lucide-book-open-text"><path d="M12 7v14"/><path d="M16 12h2"/><path d="M16 8h2"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/><path d="M6 12h2"/><path d="M6 8h2"/></svg>+ \ No newline at end of file diff --git a/docs-new/quickstart.md b/docs-new/quickstart.md @@ -1,20 +1,16 @@ --- -icon: lucide/rocket +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"/><path d="M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"/></svg> Quick Start' --- # Quick Start Guide Get started with the BSc Code Index in minutes. ---- - ## 1. Browse the Code - Use the sidebar to navigate semesters and topics - Click any file to view full documentation ---- - ## 2. Understand a Program Each page includes: @@ -22,8 +18,6 @@ Each page includes: - Problem Statement - Source Code ---- - ## 3. Run the Code ### For C @@ -33,43 +27,33 @@ gcc file.c -o output ./output ``` ---- - ### For R ```bash Rscript file.r ``` ---- - ## 4. Print or Save - Click **Raw** - Use browser → Print → Save as PDF ---- - ## 5. Learn Properly -!!! warning "Important" - Do NOT copy-paste blindly. - +::: warning Important +Do NOT copy-paste blindly. +::: Best method: - Read the code - Understand logic - Rewrite yourself ---- - ## 6. Use GitHub - View full repository - Track updates - Explore file history ---- - ## 7. Folder Navigation Each folder contains: @@ -77,10 +61,6 @@ Each folder contains: - Code files - Auto-generated index ---- - ## 8. You're Ready -Start exploring and learning step-by-step. - ---- +Start exploring and learning step-by-step.+ \ No newline at end of file diff --git a/docs-new/semester_1/R/Code/R_Code-1.md b/docs-new/semester_1/R/Code/R_Code-1.md @@ -1,65 +1,29 @@ --- -title: R_Code-1.r -description: "R program source code for R_Code-1.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-1.r' +description: 'R allows you to assign values to variables in three different ways.' --- -# `R_Code-1.r` +# R_Code-1.r - -!!! abstract "Problem Statement" - R allows you to assign values to variables in three different ways. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-1.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-1.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +R allows you to assign values to variables in three different ways. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-1.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-1.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-1.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-1.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-1.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -73,4 +37,3 @@ simple = "R is fun" left <- "R is fun" "R is fun" -> right ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-10.md b/docs-new/semester_1/R/Code/R_Code-10.md @@ -1,65 +1,29 @@ --- -title: R_Code-10.r -description: "R program source code for R_Code-10.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-10.r' +description: 'Create a numeric vector of student exam scores. Write a single line of code that evaluates these scores and outputs "Pass" for any score 50 or above, and "Fail" for any score below 50.' --- -# `R_Code-10.r` +# R_Code-10.r - -!!! abstract "Problem Statement" - Create a numeric vector of student exam scores. Write a single line of code that evaluates these scores and outputs "Pass" for any score 50 or above, and "Fail" for any score below 50. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 20 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-10.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-10.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Create a numeric vector of student exam scores. Write a single line of code that evaluates these scores and outputs "Pass" for any score 50 or above, and "Fail" for any score below 50. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-10.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-10.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-10.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-10.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-10.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -72,4 +36,3 @@ score <- c(45, 26, 89, 21, 75, 99, 13, 68, 85) ifelse(score < 50, "Fail", "Pass") ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-11.md b/docs-new/semester_1/R/Code/R_Code-11.md @@ -1,65 +1,29 @@ --- -title: R_Code-11.r -description: "R program source code for R_Code-11.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-11.r' +description: 'Write a while loop that starts with a multiplier of 1. The loop should multiply the current multiplier by 4, assign it to a result variable, and print the result. The loop should exit if the result exceeds 100; otherwise, increment the multiplier by 1.' --- -# `R_Code-11.r` +# R_Code-11.r - -!!! abstract "Problem Statement" - Write a while loop that starts with a multiplier of 1. The loop should multiply the current multiplier by 4, assign it to a result variable, and print the result. The loop should exit if the result exceeds 100; otherwise, increment the multiplier by 1. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 20 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-11.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-11.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a while loop that starts with a multiplier of 1. The loop should multiply the current multiplier by 4, assign it to a result variable, and print the result. The loop should exit if the result exceeds 100; otherwise, increment the multiplier by 1. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-11.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-11.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-11.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-11.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-11.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -81,4 +45,3 @@ while(TRUE) { num = num + 1 } ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-12.md b/docs-new/semester_1/R/Code/R_Code-12.md @@ -1,65 +1,29 @@ --- -title: R_Code-12.r -description: "R program source code for R_Code-12.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-12.r' +description: 'Write a custom function named calculate_area that takes two parameters: length and width. The width parameter should have a default value of 5. The function should print the product of the two parameters. Finally, call your function passing only the value 12 for the length.' --- -# `R_Code-12.r` +# R_Code-12.r - -!!! abstract "Problem Statement" - Write a custom function named calculate_area that takes two parameters: length and width. The width parameter should have a default value of 5. The function should print the product of the two parameters. Finally, call your function passing only the value 12 for the length. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 20 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-12.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-12.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a custom function named calculate_area that takes two parameters: length and width. The width parameter should have a default value of 5. The function should print the product of the two parameters. Finally, call your function passing only the value 12 for the length. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-12.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-12.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-12.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-12.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-12.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -75,4 +39,3 @@ calculate_area <- function(length, width = 5) { calculate_area(12) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-13.md b/docs-new/semester_1/R/Code/R_Code-13.md @@ -1,65 +1,29 @@ --- -title: R_Code-13.r -description: "R program source code for R_Code-13.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-13.r' +description: 'Create a list named student_record containing a string, an integer, and a numeric vector of two grades. Then, add the logical value TRUE to the end of the list, ensuring the original student_record variable is updated. Print the final list.' --- -# `R_Code-13.r` +# R_Code-13.r - -!!! abstract "Problem Statement" - Create a list named student_record containing a string, an integer, and a numeric vector of two grades. Then, add the logical value TRUE to the end of the list, ensuring the original student_record variable is updated. Print the final list. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 20 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-13.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-13.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Create a list named student_record containing a string, an integer, and a numeric vector of two grades. Then, add the logical value TRUE to the end of the list, ensuring the original student_record variable is updated. Print the final list. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-13.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-13.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-13.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-13.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-13.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -74,4 +38,3 @@ print(student_record) student_record <- append(student_record, TRUE) print(student_record) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-14.md b/docs-new/semester_1/R/Code/R_Code-14.md @@ -1,65 +1,29 @@ --- -title: R_Code-14.r -description: "R program source code for R_Code-14.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-14.r' +description: 'Write an if...else if...else block that evaluates a newly created temperature variable. * If the temperature is strictly greater than 30, print: "30+ is too hot!" * If the temperature is between 20 and 30 (inclusive), print: "Perfect weather." * Otherwise, print: "It is quite cold."' --- -# `R_Code-14.r` +# R_Code-14.r - -!!! abstract "Problem Statement" - Write an if...else if...else block that evaluates a newly created temperature variable. * If the temperature is strictly greater than 30, print: "30+ is too hot!" * If the temperature is between 20 and 30 (inclusive), print: "Perfect weather." * Otherwise, print: "It is quite cold." - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 20 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-14.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-14.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write an if...else if...else block that evaluates a newly created temperature variable. * If the temperature is strictly greater than 30, print: "30+ is too hot!" * If the temperature is between 20 and 30 (inclusive), print: "Perfect weather." * Otherwise, print: "It is quite cold." +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-14.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-14.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-14.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-14.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-14.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -78,4 +42,3 @@ if(temperature > 30) { print("It is quite cold.") } ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-15.md b/docs-new/semester_1/R/Code/R_Code-15.md @@ -1,54 +1,15 @@ --- -title: R_Code-15.r -description: "R program source code for R_Code-15.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-15.r' +description: 'R program — R_Code-15.r' --- -# `R_Code-15.r` +# R_Code-15.r -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-15.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-15.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-15.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-15.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-15.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-15.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-15.r] # Asking for a name name <- readline(prompt = "Enter your name: ") @@ -58,4 +19,3 @@ age <- as.numeric(age) print(paste("Hello", name, "you are", age, "years old.")) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-2.md b/docs-new/semester_1/R/Code/R_Code-2.md @@ -1,65 +1,29 @@ --- -title: R_Code-2.r -description: "R program source code for R_Code-2.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-2.r' +description: 'How do you declare an explicitly integer variable (e.g., the number 14) so that its class returns "integer" instead of the default floating-point "numeric"?' --- -# `R_Code-2.r` +# R_Code-2.r - -!!! abstract "Problem Statement" - How do you declare an explicitly integer variable (e.g., the number 14) so that its class returns "integer" instead of the default floating-point "numeric"? - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-2.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-2.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +How do you declare an explicitly integer variable (e.g., the number 14) so that its class returns "integer" instead of the default floating-point "numeric"? +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-2.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-2.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-2.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-2.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-2.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -70,4 +34,3 @@ function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();} num <- 12L print(class(num)) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-4.md b/docs-new/semester_1/R/Code/R_Code-4.md @@ -1,65 +1,29 @@ --- -title: R_Code-4.r -description: "R program source code for R_Code-4.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-4.r' +description: 'Write a standard if...else block that checks if a variable named age is greater than 18. If the condition is true, print "You are eligible to vote.", otherwise print "You cannot vote.".' --- -# `R_Code-4.r` +# R_Code-4.r - -!!! abstract "Problem Statement" - Write a standard if...else block that checks if a variable named age is greater than 18. If the condition is true, print "You are eligible to vote.", otherwise print "You cannot vote.". - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-4.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-4.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a standard if...else block that checks if a variable named age is greater than 18. If the condition is true, print "You are eligible to vote.", otherwise print "You cannot vote.". +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-4.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-4.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-4.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-4.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-4.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -77,4 +41,3 @@ if (age < 0) { print("Eligible to vote.") } ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-5.md b/docs-new/semester_1/R/Code/R_Code-5.md @@ -1,65 +1,29 @@ --- -title: R_Code-5.r -description: "R program source code for R_Code-5.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-5.r' +description: 'You have a vector of numbers: x <- c(12, 9, 23, 14). Use R''s shorthand ifelse() function to output "EVEN" if a number in the vector is divisible by 2 (x %% 2 == 0), and "ODD" if it is not.' --- -# `R_Code-5.r` +# R_Code-5.r - -!!! abstract "Problem Statement" - You have a vector of numbers: x <- c(12, 9, 23, 14). Use R's shorthand ifelse() function to output "EVEN" if a number in the vector is divisible by 2 (x %% 2 == 0), and "ODD" if it is not. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-5.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-5.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +You have a vector of numbers: x &lt;- c(12, 9, 23, 14). Use R's shorthand ifelse() function to output "EVEN" if a number in the vector is divisible by 2 (x %% 2 == 0), and "ODD" if it is not. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-5.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-5.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-5.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-5.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-5.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -71,4 +35,3 @@ function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();} x <- c(12, 9, 23, 14) ifelse(x %% 2 == 0, "EVEN", "ODD") ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-6.md b/docs-new/semester_1/R/Code/R_Code-6.md @@ -1,65 +1,29 @@ --- -title: R_Code-6.r -description: "R program source code for R_Code-6.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-6.r' +description: 'Write a while loop with a number variable starting at 1. The loop should print the number and increment it by 1, but you must include an if statement with a break command to stop the loop''s execution exactly when number == 6' --- -# `R_Code-6.r` +# R_Code-6.r - -!!! abstract "Problem Statement" - Write a while loop with a number variable starting at 1. The loop should print the number and increment it by 1, but you must include an if statement with a break command to stop the loop's execution exactly when number == 6 - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-6.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-6.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a while loop with a number variable starting at 1. The loop should print the number and increment it by 1, but you must include an if statement with a break command to stop the loop's execution exactly when number == 6 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-6.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-6.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-6.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-6.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-6.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -78,4 +42,3 @@ while (TRUE) { number = number + 1 } ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-7.md b/docs-new/semester_1/R/Code/R_Code-7.md @@ -1,65 +1,29 @@ --- -title: R_Code-7.r -description: "R program source code for R_Code-7.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-7.r' +description: 'Create a numerical vector containing the sequence of numbers from 1 to 5 using the : operator. Then, use the rep() function with the times argument to repeat that entire sequence exactly 2 times.' --- -# `R_Code-7.r` +# R_Code-7.r - -!!! abstract "Problem Statement" - Create a numerical vector containing the sequence of numbers from 1 to 5 using the : operator. Then, use the rep() function with the times argument to repeat that entire sequence exactly 2 times. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-7.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-7.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Create a numerical vector containing the sequence of numbers from 1 to 5 using the : operator. Then, use the rep() function with the times argument to repeat that entire sequence exactly 2 times. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-7.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-7.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-7.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-7.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-7.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -71,4 +35,3 @@ function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();} s <- rep(c(1:5), times= 2) print(s) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-8.md b/docs-new/semester_1/R/Code/R_Code-8.md @@ -1,65 +1,29 @@ --- -title: R_Code-8.r -description: "R program source code for R_Code-8.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-8.r' +description: 'Create a list named list1 containing the number 24, the string "Sabby", the float 5.4, and the string "Nepal". Then, write the code using the append() function to add the number 3.14 to the very end of this list.' --- -# `R_Code-8.r` +# R_Code-8.r - -!!! abstract "Problem Statement" - Create a list named list1 containing the number 24, the string "Sabby", the float 5.4, and the string "Nepal". Then, write the code using the append() function to add the number 3.14 to the very end of this list. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-8.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-8.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Create a list named list1 containing the number 24, the string "Sabby", the float 5.4, and the string "Nepal". Then, write the code using the append() function to add the number 3.14 to the very end of this list. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-8.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-8.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-8.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-8.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-8.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -75,4 +39,3 @@ print("After Update") list1 <- append(list1, 3.14) print(list1) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Code-9.md b/docs-new/semester_1/R/Code/R_Code-9.md @@ -1,65 +1,29 @@ --- -title: R_Code-9.r -description: "R program source code for R_Code-9.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Code-9.r' +description: 'Define a function called power that takes two parameters, a and b. Give a a default value of 2. The function should print the result of a raised to the power of b (a^b).' --- -# `R_Code-9.r` +# R_Code-9.r - -!!! abstract "Problem Statement" - Define a function called power that takes two parameters, a and b. Give a a default value of 2. The function should print the result of a raised to the power of b (a^b). - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-9.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-9.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Define a function called power that takes two parameters, a and b. Give a a default value of 2. The function should print the result of a raised to the power of b (a^b). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Code-9.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Code-9.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-9.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-9.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Code-9.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -76,4 +40,3 @@ b <- 3 print(power(a, b)) print(power("b" = b)) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Prac-1.md b/docs-new/semester_1/R/Code/R_Prac-1.md @@ -1,65 +1,29 @@ --- -title: R_Prac-1.r -description: "R program source code for R_Prac-1.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Prac-1.r' +description: 'Write a R program to print numbers from 1 to 5.' --- -# `R_Prac-1.r` +# R_Prac-1.r - -!!! abstract "Problem Statement" - Write a R program to print numbers from 1 to 5. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 25 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-1.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-1.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a R program to print numbers from 1 to 5. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-1.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-1.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-1.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-1.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Prac-1.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -74,4 +38,3 @@ while(i <= 5) { # or we can use print(1:5) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Prac-2.md b/docs-new/semester_1/R/Code/R_Prac-2.md @@ -1,65 +1,29 @@ --- -title: R_Prac-2.r -description: "R program source code for R_Prac-2.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Prac-2.r' +description: 'Check whether a number is even or odd.' --- -# `R_Prac-2.r` +# R_Prac-2.r - -!!! abstract "Problem Statement" - Check whether a number is even or odd. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 25 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-2.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-2.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Check whether a number is even or odd. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-2.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-2.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-2.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-2.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Prac-2.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -70,4 +34,3 @@ num <- readline(prompt="Enter the number: ") num <- as.integer(num) print(paste(num, "is", ifelse(num %% 2 == 0, "EVEN", "ODD"), "number.")) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Prac-3.md b/docs-new/semester_1/R/Code/R_Prac-3.md @@ -1,65 +1,29 @@ --- -title: R_Prac-3.r -description: "R program source code for R_Prac-3.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Prac-3.r' +description: 'Print elements of vector using for loop.' --- -# `R_Prac-3.r` +# R_Prac-3.r - -!!! abstract "Problem Statement" - Print elements of vector using for loop. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 25 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-3.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-3.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Print elements of vector using for loop. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-3.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-3.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-3.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-3.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Prac-3.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -71,4 +35,3 @@ for(elem in sample) { print(elem) } ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Prac-4.md b/docs-new/semester_1/R/Code/R_Prac-4.md @@ -1,65 +1,29 @@ --- -title: R_Prac-4.r -description: "R program source code for R_Prac-4.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Prac-4.r' +description: 'Program to add two numbers in R program.' --- -# `R_Prac-4.r` +# R_Prac-4.r - -!!! abstract "Problem Statement" - Program to add two numbers in R program. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 25 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-4.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-4.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Program to add two numbers in R program. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-4.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-4.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-4.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-4.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Prac-4.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -73,4 +37,3 @@ if(is.na(num1) || is.na(num2)) { } print(paste("Result", num1 + num2)) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Prac-5.md b/docs-new/semester_1/R/Code/R_Prac-5.md @@ -1,65 +1,29 @@ --- -title: R_Prac-5.r -description: "R program source code for R_Prac-5.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Prac-5.r' +description: 'Program to count the number of even numbers stored inside a vector of numbers.' --- -# `R_Prac-5.r` +# R_Prac-5.r - -!!! abstract "Problem Statement" - Program to count the number of even numbers stored inside a vector of numbers. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 25 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-5.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-5.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Program to count the number of even numbers stored inside a vector of numbers. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-5.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-5.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-5.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-5.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Prac-5.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -76,4 +40,3 @@ for(i in nums) { } print(paste("Even Count=", count)) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_Prac-6.md b/docs-new/semester_1/R/Code/R_Prac-6.md @@ -1,65 +1,29 @@ --- -title: R_Prac-6.r -description: "R program source code for R_Prac-6.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_Prac-6.r' +description: 'Program to access List elements, modify a List Element, add items to List, Remove items from a List, length of List.' --- -# `R_Prac-6.r` +# R_Prac-6.r - -!!! abstract "Problem Statement" - Program to access List elements, modify a List Element, add items to List, Remove items from a List, length of List. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 25 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-6.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-6.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Program to access List elements, modify a List Element, add items to List, Remove items from a List, length of List. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_Prac-6.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_Prac-6.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-6.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-6.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_Prac-6.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -85,4 +49,3 @@ print(l) print(paste("length of the list after modifing:", length(l))) ``` -</div> diff --git a/docs-new/semester_1/R/Code/R_code-3.md b/docs-new/semester_1/R/Code/R_code-3.md @@ -1,65 +1,29 @@ --- -title: R_code-3.r -description: "R program source code for R_code-3.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> R_code-3.r' +description: 'Assume you have a variable company <- "Programiz". Write a line of code using the paste0() function to print "Welcome toProgramiz" ensuring there is no default space between the string and the variable.' --- -# `R_code-3.r` +# R_code-3.r - -!!! abstract "Problem Statement" - Assume you have a variable company <- "Programiz". Write a line of code using the paste0() function to print "Welcome toProgramiz" ensuring there is no default space between the string and the variable. - -## Metadata -| Property | Detail | -|---|---| +| Property | Details | +| :--- | :--- | | **Author** | Amit Dutta (amitdutta4255@gmail.com) | | **Date** | 19 Mar 2026 | -| **License** | MIT | - -## Actions +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_code-3.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_code-3.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Assume you have a variable company &lt;- "Programiz". Write a line of code using the paste0() function to print "Welcome toProgramiz" ensuring there is no default space between the string and the variable. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/Code/R_code-3.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/Code/R_code-3.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_code-3.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_code-3.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [R_code-3.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc # License: MIT @@ -71,4 +35,3 @@ function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();} company <- "Programiz" print(paste0("welcome to", company)) ``` -</div> diff --git a/docs-new/semester_1/R/temp.md b/docs-new/semester_1/R/temp.md @@ -1,54 +1,15 @@ --- -title: temp.r -description: "R program source code for temp.r" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> temp.r' +description: 'R program — temp.r' --- -# `temp.r` +# temp.r -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/temp.r" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/temp.r" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/R/temp.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/R/temp.r" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/temp.r) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/temp.r) -## Source Code -<div data-search-exclude="true"> -```r +```r [temp.r] s1 = rep(c(1,2,3,4,5), times=2) s2 = c(5,4,3,2,1) count = 0 @@ -63,4 +24,3 @@ for(i in s1) { } 2^3 ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-01.md b/docs-new/semester_1/assignment-primary/assignment-p-01.md @@ -1,65 +1,29 @@ --- -title: assignment-p-01.c -description: "C program source code for assignment-p-01.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-01.c' +description: 'Write a C program that includes a user-defined function named isPrime with the signature int isPrime(int num); The function should take an integer as a parameter and return 1 if the number is prime and 0 otherwise.' --- -# `assignment-p-01.c` +# assignment-p-01.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named isPrime with the signature int isPrime(int num); The function should take an integer as a parameter and return 1 if the number is prime and 0 otherwise. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-01.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-01.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named isPrime with the signature int isPrime(int num); The function should take an integer as a parameter and return 1 if the number is prime and 0 otherwise. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-01.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-01.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-01.c] #include <stdio.h> #include <math.h> @@ -104,4 +68,3 @@ int isPrime(int n) return 1; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-02.md b/docs-new/semester_1/assignment-primary/assignment-p-02.md @@ -1,65 +1,29 @@ --- -title: assignment-p-02.c -description: "C program source code for assignment-p-02.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-02.c' +description: 'Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153' --- -# `assignment-p-02.c` +# assignment-p-02.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153 - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-02.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-02.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-02.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-02.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-02.c] #include <stdio.h> #include <math.h> @@ -115,4 +79,3 @@ int isArmstrong(int n) return n == checker; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-03.md b/docs-new/semester_1/assignment-primary/assignment-p-03.md @@ -1,64 +1,29 @@ --- -title: assignment-p-03.c -description: "C program source code for assignment-p-03.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-03.c' +description: 'Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For example, 28 is a perfect number because the sum of its divisors (1, 2, 4, 7, 14) equals 28.' --- -# `assignment-p-03.c` +# assignment-p-03.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For example, 28 is a perfect number because the sum of its divisors (1, 2, 4, 7, 14) equals 28. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For example, 28 is a perfect number because the sum of its divisors (1, 2, 4, 7, 14) equals 28. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-03.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-03.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-03.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-03.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-03.c] #include <stdio.h> int isPerfect(int); @@ -95,4 +60,3 @@ int isPerfect(int n) return temp == n; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-04.md b/docs-new/semester_1/assignment-primary/assignment-p-04.md @@ -1,65 +1,29 @@ --- -title: assignment-p-04.c -description: "C program source code for assignment-p-04.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-04.c' +description: 'Write a C program that takes an integer input representing a month (1 to 12) and a year. Use a switch statement to display the number of days in that month, considering leap years.' --- -# `assignment-p-04.c` +# assignment-p-04.c - -!!! abstract "Problem Statement" - Write a C program that takes an integer input representing a month (1 to 12) and a year. Use a switch statement to display the number of days in that month, considering leap years. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-04.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-04.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that takes an integer input representing a month (1 to 12) and a year. Use a switch statement to display the number of days in that month, considering leap years. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-04.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-04.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-04.c] #include <stdio.h> int main() @@ -104,4 +68,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-05.md b/docs-new/semester_1/assignment-primary/assignment-p-05.md @@ -1,65 +1,29 @@ --- -title: assignment-p-05.c -description: "C program source code for assignment-p-05.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-05.c' +description: 'Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. The function should reverse the elements of the array.' --- -# `assignment-p-05.c` +# assignment-p-05.c - -!!! abstract "Problem Statement" - Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. The function should reverse the elements of the array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-05.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-05.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. The function should reverse the elements of the array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-05.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-05.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-05.c] #include <stdio.h> void inputArray(int[], int); @@ -107,4 +71,3 @@ void reverseArray(int arr[], int size) } } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-06.md b/docs-new/semester_1/assignment-primary/assignment-p-06.md @@ -1,65 +1,29 @@ --- -title: assignment-p-06.c -description: "C program source code for assignment-p-06.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-06.c' +description: 'Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. The function should take an array of integers and its size, and return the largest element in the array.' --- -# `assignment-p-06.c` +# assignment-p-06.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. The function should take an array of integers and its size, and return the largest element in the array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-06.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-06.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. The function should take an array of integers and its size, and return the largest element in the array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-06.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-06.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-06.c] #include <stdio.h> void inputArray(int[], int); @@ -99,4 +63,3 @@ int findLargest(int arr[], int size) return largest; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-07.md b/docs-new/semester_1/assignment-primary/assignment-p-07.md @@ -1,65 +1,29 @@ --- -title: assignment-p-07.c -description: "C program source code for assignment-p-07.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-07.c' +description: 'Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. The function should perform a binary search on a sorted array of integers and return the index of the target element if found, and -1 otherwise.' --- -# `assignment-p-07.c` +# assignment-p-07.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. The function should perform a binary search on a sorted array of integers and return the index of the target element if found, and -1 otherwise. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-07.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-07.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. The function should perform a binary search on a sorted array of integers and return the index of the target element if found, and -1 otherwise. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-07.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-07.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-07.c] #include <stdio.h> int inputArray(int[], int); @@ -163,4 +127,3 @@ int binarySearch(int arr[], int size, int target) return -1; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-08.md b/docs-new/semester_1/assignment-primary/assignment-p-08.md @@ -1,64 +1,29 @@ --- -title: assignment-p-08.c -description: "C program source code for assignment-p-08.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-08.c' +description: 'Write a C program that includes a user-defined function named countSetBits with the signature int countSetBits(int num);. The function should count and return the number of set bits (1s) in the binary representation of the given number.' --- -# `assignment-p-08.c` +# assignment-p-08.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named countSetBits with the signature int countSetBits(int num);. The function should count and return the number of set bits (1s) in the binary representation of the given number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named countSetBits with the signature int countSetBits(int num);. The function should count and return the number of set bits (1s) in the binary representation of the given number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-08.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-08.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-08.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-08.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-08.c] #include <stdio.h> int countSetBits(int); @@ -96,4 +61,3 @@ int countSetBits(int num) return count; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-09.md b/docs-new/semester_1/assignment-primary/assignment-p-09.md @@ -1,64 +1,29 @@ --- -title: assignment-p-09.c -description: "C program source code for assignment-p-09.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-09.c' +description: 'Write a C program that includes a user-defined function named setBit with the signature int setBit(int num, int position);. The function should set the bit at the specified position (0-indexed) to 1 and return the modified number.' --- -# `assignment-p-09.c` +# assignment-p-09.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named setBit with the signature int setBit(int num, int position);. The function should set the bit at the specified position (0-indexed) to 1 and return the modified number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named setBit with the signature int setBit(int num, int position);. The function should set the bit at the specified position (0-indexed) to 1 and return the modified number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-09.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-09.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-09.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-09.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-09.c] #include <stdio.h> int setBit(int, int); @@ -80,4 +45,3 @@ int setBit(int num, int position) return num | mask; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-10.md b/docs-new/semester_1/assignment-primary/assignment-p-10.md @@ -1,64 +1,29 @@ --- -title: assignment-p-10.c -description: "C program source code for assignment-p-10.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-10.c' +description: 'Write a C program that defines a structure Rectangle with attributes length and width. Include a user-defined function named calculateArea with the signature float calculateArea(struct Rectangle r);. The function should calculate and return the area of the rectangle.' --- -# `assignment-p-10.c` +# assignment-p-10.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that defines a structure Rectangle with attributes length and width. Include a user-defined function named calculateArea with the signature float calculateArea(struct Rectangle r);. The function should calculate and return the area of the rectangle. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program that defines a structure Rectangle with attributes length and width. Include a user-defined function named calculateArea with the signature float calculateArea(struct Rectangle r);. The function should calculate and return the area of the rectangle. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-10.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-10.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-10.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-10.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-10.c] #include <stdio.h> struct Rectangle @@ -84,4 +49,3 @@ float calculateArea(struct Rectangle r) return r.length * r.width; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-11.md b/docs-new/semester_1/assignment-primary/assignment-p-11.md @@ -1,65 +1,29 @@ --- -title: assignment-p-11.c -description: "C program source code for assignment-p-11.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-11.c' +description: 'Write a C program that defines a structure Student containing the attributes rollNumber, name, and marks. Include a user-defined function named displayStudent with the signature void displayStudent(struct Student s);. The function should display the details of a student.' --- -# `assignment-p-11.c` +# assignment-p-11.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that defines a structure Student containing the attributes rollNumber, name, and marks. Include a user-defined function named displayStudent with the signature void displayStudent(struct Student s);. The function should display the details of a student. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-11.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-11.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a C program that defines a structure Student containing the attributes rollNumber, name, and marks. Include a user-defined function named displayStudent with the signature void displayStudent(struct Student s);. The function should display the details of a student. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-11.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-11.c) + +```c [assignment-p-11.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -136,4 +100,3 @@ void displayStudent(struct Student std) printf("\n%-12s : %g\n", "Marks", std.marks); } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-12_v1.md b/docs-new/semester_1/assignment-primary/assignment-p-12_v1.md @@ -1,65 +1,29 @@ --- -title: assignment-p-12_v1.c -description: "C program source code for assignment-p-12_v1.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-12_v1.c' +description: 'Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them.' --- -# `assignment-p-12_v1.c` +# assignment-p-12_v1.c - -!!! abstract "Problem Statement" - Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v1.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v1.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v1.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v1.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-12_v1.c] #include <stdio.h> #include <stdlib.h> @@ -106,4 +70,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-12_v2.md b/docs-new/semester_1/assignment-primary/assignment-p-12_v2.md @@ -1,65 +1,29 @@ --- -title: assignment-p-12_v2.c -description: "C program source code for assignment-p-12_v2.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-12_v2.c' +description: 'Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them.' --- -# `assignment-p-12_v2.c` +# assignment-p-12_v2.c - -!!! abstract "Problem Statement" - Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v2.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v2.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v2.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v2.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-12_v2.c] #include <stdio.h> #include <stdlib.h> @@ -91,4 +55,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-13.md b/docs-new/semester_1/assignment-primary/assignment-p-13.md @@ -1,65 +1,29 @@ --- -title: assignment-p-13.c -description: "C program source code for assignment-p-13.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-13.c' +description: 'Write a C program that accepts a string as a command line argument and includes a user- defined function named isPalindrome with the signature int isPalindrome(char str[]);. The function should check if the given string is a palindrome and return 1 if it is, and 0 otherwise.' --- -# `assignment-p-13.c` +# assignment-p-13.c - -!!! abstract "Problem Statement" - Write a C program that accepts a string as a command line argument and includes a user- defined function named isPalindrome with the signature int isPalindrome(char str[]);. The function should check if the given string is a palindrome and return 1 if it is, and 0 otherwise. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-13.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-13.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that accepts a string as a command line argument and includes a user- defined function named isPalindrome with the signature int isPalindrome(char str[]);. The function should check if the given string is a palindrome and return 1 if it is, and 0 otherwise. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-13.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-13.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-13.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-13.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-13.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -106,4 +70,3 @@ int isPalindrome(char str[]) return 1; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-14_v1.md b/docs-new/semester_1/assignment-primary/assignment-p-14_v1.md @@ -1,65 +1,29 @@ --- -title: assignment-p-14_v1.c -description: "C program source code for assignment-p-14_v1.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-14_v1.c' +description: 'Write a C program that opens its own source code file, reads its contents, and then prints the contents to the console.' --- -# `assignment-p-14_v1.c` +# assignment-p-14_v1.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that opens its own source code file, reads its contents, and then prints the contents to the console. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v1.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v1.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a C program that opens its own source code file, reads its contents, and then prints the contents to the console. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v1.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v1.c) + +```c [assignment-p-14_v1.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -115,4 +79,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-14_v2.md b/docs-new/semester_1/assignment-primary/assignment-p-14_v2.md @@ -1,65 +1,29 @@ --- -title: assignment-p-14_v2.c -description: "C program source code for assignment-p-14_v2.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-14_v2.c' +description: 'Write a C program that opens its own source code file, reads its contents, and then prints the contents to the console.' --- -# `assignment-p-14_v2.c` +# assignment-p-14_v2.c - -!!! abstract "Problem Statement" - Write a C program that opens its own source code file, reads its contents, and then prints the contents to the console. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v2.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v2.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that opens its own source code file, reads its contents, and then prints the contents to the console. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v2.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v2.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-14_v2.c] #include <stdio.h> #define FILENAME "assignment-p-14_v2.c" @@ -91,4 +55,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-15.md b/docs-new/semester_1/assignment-primary/assignment-p-15.md @@ -1,65 +1,29 @@ --- -title: assignment-p-15.c -description: "C program source code for assignment-p-15.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-p-15.c' +description: 'Write a C program that reads a sequence of integers from a file named ''input.txt''. This program should segregate the odd numbers from the even numbers and store the odd numbers in a new file named ''ODDFile.txt'' while storing the even numbers in another file named ''EVENFile.txt''' --- -# `assignment-p-15.c` +# assignment-p-15.c - -!!! abstract "Problem Statement" - Write a C program that reads a sequence of integers from a file named 'input.txt'. This program should segregate the odd numbers from the even numbers and store the odd numbers in a new file named 'ODDFile.txt' while storing the even numbers in another file named 'EVENFile.txt' - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-15.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-15.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that reads a sequence of integers from a file named 'input.txt'. This program should segregate the odd numbers from the even numbers and store the odd numbers in a new file named 'ODDFile.txt' while storing the even numbers in another file named 'EVENFile.txt' +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-15.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-15.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-p-15.c] #include <stdio.h> #define FILENAME "input.txt" @@ -117,4 +81,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-01.md b/docs-new/semester_1/assignment-secondary/assignment-s-01.md @@ -1,64 +1,29 @@ --- -title: assignment-s-01.c -description: "C program source code for assignment-s-01.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-01.c' +description: 'Write a program to compute the sum and product of digits of an integer using user defined functions.' --- -# `assignment-s-01.c` +# assignment-s-01.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to compute the sum and product of digits of an integer using user defined functions. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to compute the sum and product of digits of an integer using user defined functions. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-01.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-01.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-01.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-01.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-01.c] #include <stdio.h> int sum_of_digits(int); @@ -96,4 +61,3 @@ int product_of_digits(int num) return product; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-02.md b/docs-new/semester_1/assignment-secondary/assignment-s-02.md @@ -1,64 +1,29 @@ --- -title: assignment-s-02.c -description: "C program source code for assignment-s-02.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-02.c' +description: 'Write a program to reverse a non-negative integer using a function.' --- -# `assignment-s-02.c` +# assignment-s-02.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to reverse a non-negative integer using a function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to reverse a non-negative integer using a function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-02.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-02.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-02.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-02.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-02.c] #include <stdio.h> int reverse(int); @@ -88,4 +53,3 @@ int reverse(int num) return rev; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-03.md b/docs-new/semester_1/assignment-secondary/assignment-s-03.md @@ -1,64 +1,29 @@ --- -title: assignment-s-03.c -description: "C program source code for assignment-s-03.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-03.c' +description: 'Write a program to compute the sum of the first n terms of the series using a function: S=1−2+3−4+5−6+…' --- -# `assignment-s-03.c` +# assignment-s-03.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to compute the sum of the first n terms of the series using a function: S=1−2+3−4+5−6+… +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to compute the sum of the first n terms of the series using a function: S=1−2+3−4+5−6+… +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-03.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-03.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-03.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-03.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-03.c] #include <stdio.h> int sum_of_series(int); @@ -90,4 +55,3 @@ int sum_of_series(int n) return sum; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-04.md b/docs-new/semester_1/assignment-secondary/assignment-s-04.md @@ -1,65 +1,29 @@ --- -title: assignment-s-04.c -description: "C program source code for assignment-s-04.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-04.c' +description: 'Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100.' --- -# `assignment-s-04.c` +# assignment-s-04.c - -!!! abstract "Problem Statement" - Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-04.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-04.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-04.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-04.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-04.c] #include <stdio.h> #include <math.h> @@ -110,4 +74,3 @@ int isPrime(int n) return 1; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-05.md b/docs-new/semester_1/assignment-secondary/assignment-s-05.md @@ -1,65 +1,29 @@ --- -title: assignment-s-05.c -description: "C program source code for assignment-s-05.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-05.c' +description: 'Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome.' --- -# `assignment-s-05.c` +# assignment-s-05.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-05.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-05.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-05.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-05.c) + +```c [assignment-s-05.c] #include <stdio.h> #include <string.h> @@ -117,4 +81,3 @@ int isPalindrome(char str[]) return 1; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-06.md b/docs-new/semester_1/assignment-secondary/assignment-s-06.md @@ -1,64 +1,29 @@ --- -title: assignment-s-06.c -description: "C program source code for assignment-s-06.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-06.c' +description: 'Write a program using a function to compute and display all factors of a given number.' --- -# `assignment-s-06.c` +# assignment-s-06.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program using a function to compute and display all factors of a given number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program using a function to compute and display all factors of a given number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-06.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-06.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-06.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-06.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-06.c] #include <stdio.h> #include <stdlib.h> @@ -94,4 +59,3 @@ void display_factors(int num) { printf(" %d", -i); } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-07.md b/docs-new/semester_1/assignment-secondary/assignment-s-07.md @@ -1,64 +1,29 @@ --- -title: assignment-s-07.c -description: "C program source code for assignment-s-07.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-07.c' +description: 'Write a program to swap two numbers using a macro (#define).' --- -# `assignment-s-07.c` +# assignment-s-07.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to swap two numbers using a macro (#define). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to swap two numbers using a macro (#define). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-07.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-07.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-07.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-07.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-07.c] #include <stdio.h> // Define the SWAP macro. @@ -90,4 +55,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-08.md b/docs-new/semester_1/assignment-secondary/assignment-s-08.md @@ -1,64 +1,29 @@ --- -title: assignment-s-08.c -description: "C program source code for assignment-s-08.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-08.c' +description: 'Write a program that counts the number of occurrences of each alphabet (A-Z, a-z) in the text entered using Command-Line Arguments.' --- -# `assignment-s-08.c` +# assignment-s-08.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program that counts the number of occurrences of each alphabet (A-Z, a-z) in the text entered using Command-Line Arguments. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program that counts the number of occurrences of each alphabet (A-Z, a-z) in the text entered using Command-Line Arguments. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-08.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-08.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-08.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-08.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-08.c] #include <stdio.h> #include <string.h> @@ -96,4 +61,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-09.md b/docs-new/semester_1/assignment-secondary/assignment-s-09.md @@ -1,64 +1,29 @@ --- -title: assignment-s-09.c -description: "C program source code for assignment-s-09.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-09.c' +description: 'Write a program to swap two numbers using pointers (user-defined function).' --- -# `assignment-s-09.c` +# assignment-s-09.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 17 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to swap two numbers using pointers (user-defined function). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 17 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to swap two numbers using pointers (user-defined function). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-09.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-09.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-09.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-09.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-09.c] #include <stdio.h> void swap(int *, int *); @@ -85,4 +50,3 @@ void swap(int *a, int *b) *a = *a ^ *b; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-10.md b/docs-new/semester_1/assignment-secondary/assignment-s-10.md @@ -1,64 +1,29 @@ --- -title: assignment-s-10.c -description: "C program source code for assignment-s-10.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-10.c' +description: 'Write a program to swap two numbers using pointers (user-defined function).' --- -# `assignment-s-10.c` +# assignment-s-10.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 17 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to swap two numbers using pointers (user-defined function). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 17 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to swap two numbers using pointers (user-defined function). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-10.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-10.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-10.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-10.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-10.c] #include <stdio.h> void swap(int *, int *); @@ -85,4 +50,3 @@ void swap(int *a, int *b) *a = *a ^ *b; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-11.md b/docs-new/semester_1/assignment-secondary/assignment-s-11.md @@ -1,64 +1,29 @@ --- -title: assignment-s-11.c -description: "C program source code for assignment-s-11.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-11.c' +description: 'Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main().' --- -# `assignment-s-11.c` +# assignment-s-11.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 17 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main(). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 17 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main(). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-11.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-11.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-11.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-11.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-11.c] #include <stdio.h> #include <math.h> @@ -81,4 +46,3 @@ void area_circumference(double r, double *area, double *circumference) *circumference = 2 * M_PI * r; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-12.md b/docs-new/semester_1/assignment-secondary/assignment-s-12.md @@ -1,64 +1,29 @@ --- -title: assignment-s-12.c -description: "C program source code for assignment-s-12.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-12.c' +description: 'Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()).' --- -# `assignment-s-12.c` +# assignment-s-12.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 17 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 17 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-12.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-12.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-12.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-12.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-12.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-12.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-12.c] #include <stdio.h> #include <stdlib.h> @@ -97,4 +62,3 @@ int sum_elem(int arr[], int n) return sum; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-13-1.md b/docs-new/semester_1/assignment-secondary/assignment-s-13-1.md @@ -1,65 +1,29 @@ --- -title: assignment-s-13-1.c -description: "C program source code for assignment-s-13-1.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-13-1.c' +description: 'Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void.' --- -# `assignment-s-13-1.c` +# assignment-s-13-1.c - -!!! abstract "Problem Statement" - Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 19 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-1.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-1.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-1.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-1.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-13-1.c] #include <stdio.h> #include <stdlib.h> @@ -118,4 +82,3 @@ void reverse(int *arr) } } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-13-2.md b/docs-new/semester_1/assignment-secondary/assignment-s-13-2.md @@ -1,65 +1,29 @@ --- -title: assignment-s-13-2.c -description: "C program source code for assignment-s-13-2.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-13-2.c' +description: 'Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void.' --- -# `assignment-s-13-2.c` +# assignment-s-13-2.c - -!!! abstract "Problem Statement" - Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 19 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-2.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-2.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-2.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-2.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-13-2.c] #include <stdio.h> #include <stdlib.h> @@ -122,4 +86,3 @@ void reverse(struct Array *array) } } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-14.md b/docs-new/semester_1/assignment-secondary/assignment-s-14.md @@ -1,65 +1,29 @@ --- -title: assignment-s-14.c -description: "C program source code for assignment-s-14.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-14.c' +description: 'Write a menu-driven program to perform the following string operations: a. Show address of each character b. Concatenate two strings without using strcat() c. Concatenate two strings using strcat() d. Compare two strings e. Find string length using pointers f. Convert lowercase to uppercase g. Convert uppercase to lowercase h. Count number of vowels i. Reverse the string' --- -# `assignment-s-14.c` +# assignment-s-14.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 20 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a menu-driven program to perform the following string operations: a. Show address of each character b. Concatenate two strings without using strcat() c. Concatenate two strings using strcat() d. Compare two strings e. Find string length using pointers f. Convert lowercase to uppercase g. Convert uppercase to lowercase h. Count number of vowels i. Reverse the string +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 20 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-14.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-14.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-14.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-14.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a menu-driven program to perform the following string operations: a. Show address of each character b. Concatenate two strings without using strcat() c. Concatenate two strings using strcat() d. Compare two strings e. Find string length using pointers f. Convert lowercase to uppercase g. Convert uppercase to lowercase h. Count number of vowels i. Reverse the string +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-14.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-14.c) + +```c [assignment-s-14.c] #include <stdio.h> #include <ctype.h> #include <string.h> @@ -324,4 +288,3 @@ void reverse(char str[]) printf("%s\n", result); } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-15.md b/docs-new/semester_1/assignment-secondary/assignment-s-15.md @@ -1,65 +1,29 @@ --- -title: assignment-s-15.c -description: "C program source code for assignment-s-15.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-15.c' +description: 'Write a program to merge two sorted integer arrays to form a single sorted array.' --- -# `assignment-s-15.c` +# assignment-s-15.c - -!!! abstract "Problem Statement" - Write a program to merge two sorted integer arrays to form a single sorted array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 21 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-15.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-15.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to merge two sorted integer arrays to form a single sorted array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-15.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-15.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-15.c] #include <stdio.h> #include <stdlib.h> @@ -108,4 +72,3 @@ void merge(int a[], int n1, int b[], int n2) free(c); } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-16.md b/docs-new/semester_1/assignment-secondary/assignment-s-16.md @@ -1,65 +1,29 @@ --- -title: assignment-s-16.c -description: "C program source code for assignment-s-16.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-16.c' +description: 'Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order.' --- -# `assignment-s-16.c` +# assignment-s-16.c - -!!! abstract "Problem Statement" - Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 21 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-16.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-16.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-16.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-16.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-16.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-16.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-16.c] #include <stdio.h> #include <stdlib.h> @@ -127,4 +91,3 @@ void print(int *arr, int n) free(temp); } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-17.md b/docs-new/semester_1/assignment-secondary/assignment-s-17.md @@ -1,65 +1,29 @@ --- -title: assignment-s-17.c -description: "C program source code for assignment-s-17.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-17.c' +description: 'Write a program to display the Fibonacci series (i) using recursion (ii) using iteration' --- -# `assignment-s-17.c` +# assignment-s-17.c - -!!! abstract "Problem Statement" - Write a program to display the Fibonacci series (i) using recursion (ii) using iteration - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 21 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-17.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-17.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to display the Fibonacci series (i) using recursion (ii) using iteration +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-17.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-17.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-17.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-17.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-17.c] #include <stdio.h> long long int fib_rec(int); @@ -142,4 +106,3 @@ void fib_ite_print(int n) } } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-18.md b/docs-new/semester_1/assignment-secondary/assignment-s-18.md @@ -1,65 +1,29 @@ --- -title: assignment-s-18.c -description: "C program source code for assignment-s-18.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-18.c' +description: 'Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration' --- -# `assignment-s-18.c` +# assignment-s-18.c - -!!! abstract "Problem Statement" - Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 22 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-18.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-18.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-18.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-18.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-18.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-18.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-18.c] #include <stdio.h> long long int fact_tail_rec(int, long long int); @@ -121,4 +85,3 @@ long long int fact_ite(int n) return result; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-19.md b/docs-new/semester_1/assignment-secondary/assignment-s-19.md @@ -1,65 +1,29 @@ --- -title: assignment-s-19.c -description: "C program source code for assignment-s-19.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-19.c' +description: 'Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion' --- -# `assignment-s-19.c` +# assignment-s-19.c - -!!! abstract "Problem Statement" - Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 22 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-19.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-19.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-19.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-19.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-19.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-19.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-19.c] #include <stdio.h> int gcd_tail_rec(int, int); @@ -117,4 +81,3 @@ int gcd_ite(int a, int b) return a; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-20.md b/docs-new/semester_1/assignment-secondary/assignment-s-20.md @@ -1,65 +1,29 @@ --- -title: assignment-s-20.c -description: "C program source code for assignment-s-20.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-20.c' +description: 'Write a menu-driven program to perform the following matrix operations using 2-D arrays and functions: a. Sum b. Difference c. Product d. Transpose' --- -# `assignment-s-20.c` +# assignment-s-20.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 22 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a menu-driven program to perform the following matrix operations using 2-D arrays and functions: a. Sum b. Difference c. Product d. Transpose +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 22 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-20.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-20.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-20.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-20.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a menu-driven program to perform the following matrix operations using 2-D arrays and functions: a. Sum b. Difference c. Product d. Transpose +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-20.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-20.c) + +```c [assignment-s-20.c] #include <stdio.h> #include <stdlib.h> @@ -372,4 +336,3 @@ void transpose(int **matrix, int rows, int cols) clear(r, cols); } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-21.md b/docs-new/semester_1/assignment-secondary/assignment-s-21.md @@ -1,65 +1,29 @@ --- -title: assignment-s-21.c -description: "C program source code for assignment-s-21.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-21.c' +description: 'Write a program to copy the contents of a text file to another file, after removing all white spaces (spaces, tabs, newlines).' --- -# `assignment-s-21.c` +# assignment-s-21.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 21 Jan 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to copy the contents of a text file to another file, after removing all white spaces (spaces, tabs, newlines). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 21 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-21.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-21.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-21.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-21.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to copy the contents of a text file to another file, after removing all white spaces (spaces, tabs, newlines). +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-21.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-21.c) + +```c [assignment-s-21.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -131,4 +95,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-22.md b/docs-new/semester_1/assignment-secondary/assignment-s-22.md @@ -1,64 +1,29 @@ --- -title: assignment-s-22.c -description: "C program source code for assignment-s-22.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-22.c' +description: 'Write a program using structures to add two distances in meter-kilometer format.' --- -# `assignment-s-22.c` +# assignment-s-22.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 18 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program using structures to add two distances in meter-kilometer format. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program using structures to add two distances in meter-kilometer format. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-22.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-22.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-22.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-22.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-22.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-22.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-22.c] #include <stdio.h> #include <stdlib.h> @@ -90,4 +55,3 @@ void total_distance(struct distance dis[]) printf("Total distance: %d KM, %d M", result_km, result_m); } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-23.md b/docs-new/semester_1/assignment-secondary/assignment-s-23.md @@ -1,64 +1,29 @@ --- -title: assignment-s-23.c -description: "C program source code for assignment-s-23.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-23.c' +description: 'Write a program to add two complex numbers using structures.' --- -# `assignment-s-23.c` +# assignment-s-23.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 18 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to add two complex numbers using structures. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to add two complex numbers using structures. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-23.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-23.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-23.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-23.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-23.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-23.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-23.c] #include <stdio.h> #include <stdlib.h> @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-24.md b/docs-new/semester_1/assignment-secondary/assignment-s-24.md @@ -1,64 +1,29 @@ --- -title: assignment-s-24.c -description: "C program source code for assignment-s-24.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> assignment-s-24.c' +description: 'Write a program to calculate the difference between two time periods using structures.' --- -# `assignment-s-24.c` +# assignment-s-24.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 18 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to calculate the difference between two time periods using structures. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to calculate the difference between two time periods using structures. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-24.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-24.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-24.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-24.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-24.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-24.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [assignment-s-24.c] #include <stdio.h> #include <stdlib.h> @@ -91,4 +56,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.md b/docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.md @@ -1,65 +1,29 @@ --- -title: Qn-10.c -description: "C program source code for Qn-10.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> Qn-10.c' +description: 'Write a C program to find the maximum element in each row of a 2D array and print the result.' --- -# `Qn-10.c` +# Qn-10.c - -!!! abstract "Problem Statement" - Write a C program to find the maximum element in each row of a 2D array and print the result. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Mar 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program to find the maximum element in each row of a 2D array and print the result. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [Qn-10.c] #include <stdio.h> void findMax(int row, int col, int[row][col]); @@ -96,4 +60,3 @@ void findMax(int row, int col, int arr[row][col]) } } ``` -</div> diff --git a/docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.md b/docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.md @@ -1,65 +1,29 @@ --- -title: Qn-8.c -description: "C program source code for Qn-8.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> Qn-8.c' +description: 'Write a C program to find the transpose of a given square matrix using 2D array. The transpose of a matrix is obtained by swapping the rows and columns of the matrix' --- -# `Qn-8.c` +# Qn-8.c - -!!! abstract "Problem Statement" - Write a C program to find the transpose of a given square matrix using 2D array. The transpose of a matrix is obtained by swapping the rows and columns of the matrix - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Mar 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program to find the transpose of a given square matrix using 2D array. The transpose of a matrix is obtained by swapping the rows and columns of the matrix +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [Qn-8.c] #include <stdio.h> void transpose(int row, int col, int[row][col]); @@ -110,4 +74,3 @@ void print(int row, int col, int arr[row][col]) } } ``` -</div> diff --git a/docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.md b/docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.md @@ -1,65 +1,29 @@ --- -title: Qn-9.c -description: "C program source code for Qn-9.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> Qn-9.c' +description: 'Write a C program to find sum of all elements in a given 2D array.' --- -# `Qn-9.c` +# Qn-9.c - -!!! abstract "Problem Statement" - Write a C program to find sum of all elements in a given 2D array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Mar 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program to find sum of all elements in a given 2D array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [Qn-9.c] #include <stdio.h> int findSum(int row, int col, int[row][col]); @@ -93,4 +57,3 @@ int findSum(int row, int col, int arr[row][col]) return sum; } ``` -</div> diff --git a/docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.md b/docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.md @@ -1,65 +1,29 @@ --- -title: Qn-11.c -description: "C program source code for Qn-11.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> Qn-11.c' +description: 'Write a program to explain, how an array of stucture can you defined and accessed.' --- -# `Qn-11.c` +# Qn-11.c - -!!! abstract "Problem Statement" - Write a program to explain, how an array of stucture can you defined and accessed. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Mar 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to explain, how an array of stucture can you defined and accessed. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [Qn-11.c] #include <stdio.h> #include <string.h> @@ -106,4 +70,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.md b/docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.md @@ -1,65 +1,29 @@ --- -title: Qn-3.c -description: "C program source code for Qn-3.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> Qn-3.c' +description: 'Write a program to search an element from an array using linear search technique using malloc() and free() for memory allocation and deallocation.' --- -# `Qn-3.c` +# Qn-3.c - -!!! abstract "Problem Statement" - Write a program to search an element from an array using linear search technique using malloc() and free() for memory allocation and deallocation. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Mar 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to search an element from an array using linear search technique using malloc() and free() for memory allocation and deallocation. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [Qn-3.c] #include <stdio.h> #include <stdlib.h> @@ -116,4 +80,3 @@ int linearSearch(int arr[], int size, int target) return -1; } ``` -</div> diff --git a/docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.md b/docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.md @@ -1,65 +1,29 @@ --- -title: Qn-4.c -description: "C program source code for Qn-4.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> Qn-4.c' +description: 'Write a program to check a string is palindrome or not using user-defined function.' --- -# `Qn-4.c` +# Qn-4.c - -!!! abstract "Problem Statement" - Write a program to check a string is palindrome or not using user-defined function. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 06 Mar 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to check a string is palindrome or not using user-defined function. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [Qn-4.c] #include <stdio.h> #include <string.h> #include <stdbool.h> @@ -95,4 +59,3 @@ bool isPalindrome(char str[]) { return true; } ``` -</div> diff --git a/docs-new/semester_1/index.md b/docs-new/semester_1/index.md @@ -1,23 +1,18 @@ ---- -icon: lucide/component ---- +# Semester 1 -!!! tip "Active" - ## SEMESTER 1: ACTIVE CONTENT +::: tip Active +#### <b><u>SEMESTER 1: ACTIVE CONTENT</u></b> - This folder contains all my current academic work, including practicals, assignments, and study materials for the BSc Computer Science program **(SEM-I)** at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +This folder contains all my current academic work, including practicals, assignments, and study materials for the BSc Computer Science program **(SEM-I)** at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Status:** - * **Actively Updated:** New code and materials are added following the college schedule. - * **Technologies:** Primarily focusing on **C Programming** and **R Programming**. +**Current Status:** +* **Actively Updated:** New code and materials are added following the college schedule. +* **Technologies:** Primarily focusing on **C Programming** and **R Programming**. - **Explore More:** - * See my other projects on my [**Portfolio**](https://amit.is-a.dev/) - * Follow my development journey on [**GitHub**](https://github.com/notamitgamer) - ---- - -Files and sub-folders in **Eduincs Exam**. +**Explore More:** +* See my other projects on my [**Portfolio**](https://amit.is-a.dev/) +* Follow my development journey on [**GitHub**](https://github.com/notamitgamer) +::: ## Folders @@ -53,16 +48,12 @@ To keep the repository organized, the C and R programs are divided into specific * `/Code/`: R script files (`.r`) for practicals. * `/Material_PDF/`: Study materials and reference documents for R. ---- - ## How to Find a Specific Code 1. **Identify the Category:** Determine if the code was an assignment, a textbook problem, or a tuition exercise, and navigate to the corresponding folder above. 2. **Naming Convention:** Most files are sequentially numbered for easy tracking (e.g., `assignment-p-01.c`, `luc018.c`, `APC-PRAC-005.c`). 3. **Internal Comments:** Open the file. Most source codes include a commented section at the top detailing the exact problem statement or logic being solved. ---- - ## How to Run the Programs ### Running C Programs (`.c`) diff --git a/docs-new/semester_1/internal-practice/IP-01.md b/docs-new/semester_1/internal-practice/IP-01.md @@ -1,64 +1,29 @@ --- -title: IP-01.c -description: "C program source code for IP-01.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-01.c' +description: 'Write a program to compute the sum and product of digits of an integer using user defined functions.' --- -# `IP-01.c` +# IP-01.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to compute the sum and product of digits of an integer using user defined functions. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to compute the sum and product of digits of an integer using user defined functions. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-01.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-01.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-01.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-01.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-01.c] #include <stdio.h> int sum_of_digits(int); @@ -96,4 +61,3 @@ int product_of_digits(int num) return product; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-02.md b/docs-new/semester_1/internal-practice/IP-02.md @@ -1,64 +1,29 @@ --- -title: IP-02.c -description: "C program source code for IP-02.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-02.c' +description: 'Write a program to reverse a non-negative integer using a function.' --- -# `IP-02.c` +# IP-02.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to reverse a non-negative integer using a function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to reverse a non-negative integer using a function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-02.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-02.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-02.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-02.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-02.c] #include <stdio.h> int reverse(int); @@ -88,4 +53,3 @@ int reverse(int num) return rev; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-03.md b/docs-new/semester_1/internal-practice/IP-03.md @@ -1,64 +1,29 @@ --- -title: IP-03.c -description: "C program source code for IP-03.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-03.c' +description: 'Write a program to compute the sum of the first n terms of the series using a function: S=1−2+3−4+5−6+…' --- -# `IP-03.c` +# IP-03.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to compute the sum of the first n terms of the series using a function: S=1−2+3−4+5−6+… +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to compute the sum of the first n terms of the series using a function: S=1−2+3−4+5−6+… +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-03.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-03.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-03.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-03.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-03.c] #include <stdio.h> int sum_of_series(int); @@ -90,4 +55,3 @@ int sum_of_series(int n) return sum; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-04.md b/docs-new/semester_1/internal-practice/IP-04.md @@ -1,65 +1,29 @@ --- -title: IP-04.c -description: "C program source code for IP-04.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-04.c' +description: 'Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100.' --- -# `IP-04.c` +# IP-04.c - -!!! abstract "Problem Statement" - Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-04.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-04.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-04.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-04.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-04.c] #include <stdio.h> #include <math.h> @@ -110,4 +74,3 @@ int isPrime(int n) return 1; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-05.md b/docs-new/semester_1/internal-practice/IP-05.md @@ -1,65 +1,29 @@ --- -title: IP-05.c -description: "C program source code for IP-05.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-05.c' +description: 'Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome.' --- -# `IP-05.c` +# IP-05.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-05.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-05.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-05.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-05.c) + +```c [IP-05.c] #include <stdio.h> #include <string.h> @@ -117,4 +81,3 @@ int isPalindrome(char str[]) return 1; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-06.md b/docs-new/semester_1/internal-practice/IP-06.md @@ -1,64 +1,29 @@ --- -title: IP-06.c -description: "C program source code for IP-06.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-06.c' +description: 'Write a program using a function to compute and display all factors of a given number.' --- -# `IP-06.c` +# IP-06.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program using a function to compute and display all factors of a given number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program using a function to compute and display all factors of a given number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-06.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-06.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-06.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-06.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-06.c] #include <stdio.h> #include <stdlib.h> @@ -94,4 +59,3 @@ void display_factors(int num) { printf(" %d", -i); } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-07.md b/docs-new/semester_1/internal-practice/IP-07.md @@ -1,64 +1,29 @@ --- -title: IP-07.c -description: "C program source code for IP-07.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-07.c' +description: 'Write a program to swap two numbers using pointers (user-defined function).' --- -# `IP-07.c` +# IP-07.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to swap two numbers using pointers (user-defined function). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to swap two numbers using pointers (user-defined function). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-07.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-07.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-07.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-07.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-07.c] #include <stdio.h> void swap(int *, int *); @@ -85,4 +50,3 @@ void swap(int *a, int *b) *a = *a ^ *b; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-08.md b/docs-new/semester_1/internal-practice/IP-08.md @@ -1,64 +1,29 @@ --- -title: IP-08.c -description: "C program source code for IP-08.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-08.c' +description: 'Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main().' --- -# `IP-08.c` +# IP-08.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main(). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main(). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-08.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-08.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-08.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-08.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-08.c] #include <stdio.h> #include <math.h> @@ -81,4 +46,3 @@ void area_circumference(double r, double *area, double *circumference) *circumference = 2 * M_PI * r; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-09.md b/docs-new/semester_1/internal-practice/IP-09.md @@ -1,64 +1,29 @@ --- -title: IP-09.c -description: "C program source code for IP-09.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-09.c' +description: 'Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()).' --- -# `IP-09.c` +# IP-09.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-09.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-09.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-09.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-09.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-09.c] #include <stdio.h> #include <stdlib.h> @@ -97,4 +62,3 @@ int sum_elem(int arr[], int n) return sum; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-10.md b/docs-new/semester_1/internal-practice/IP-10.md @@ -1,65 +1,29 @@ --- -title: IP-10.c -description: "C program source code for IP-10.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-10.c' +description: 'Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void.' --- -# `IP-10.c` +# IP-10.c - -!!! abstract "Problem Statement" - Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-10.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-10.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-10.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-10.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-10.c] #include <stdio.h> #include <stdlib.h> @@ -128,4 +92,3 @@ void reverse(int *n) *n = rev; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-11.md b/docs-new/semester_1/internal-practice/IP-11.md @@ -1,65 +1,29 @@ --- -title: IP-11.c -description: "C program source code for IP-11.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-11.c' +description: 'Write a program to merge two sorted integer arrays to form a single sorted array.' --- -# `IP-11.c` +# IP-11.c - -!!! abstract "Problem Statement" - Write a program to merge two sorted integer arrays to form a single sorted array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-11.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-11.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to merge two sorted integer arrays to form a single sorted array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-11.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-11.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-11.c] #include <stdio.h> #include <stdlib.h> @@ -108,4 +72,3 @@ void merge(int a[], int n1, int b[], int n2) free(c); } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-12.md b/docs-new/semester_1/internal-practice/IP-12.md @@ -1,65 +1,29 @@ --- -title: IP-12.c -description: "C program source code for IP-12.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-12.c' +description: 'Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order.' --- -# `IP-12.c` +# IP-12.c - -!!! abstract "Problem Statement" - Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-12.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-12.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-12.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-12.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-12.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-12.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-12.c] #include <stdio.h> #include <stdlib.h> @@ -127,4 +91,3 @@ void print(int *arr, int n) free(temp); } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-13.md b/docs-new/semester_1/internal-practice/IP-13.md @@ -1,65 +1,29 @@ --- -title: IP-13.c -description: "C program source code for IP-13.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-13.c' +description: 'Write a program to display the Fibonacci series (i) using recursion (ii) using iteration' --- -# `IP-13.c` +# IP-13.c - -!!! abstract "Problem Statement" - Write a program to display the Fibonacci series (i) using recursion (ii) using iteration - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-13.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-13.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to display the Fibonacci series (i) using recursion (ii) using iteration +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-13.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-13.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-13.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-13.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-13.c] #include <stdio.h> long long int fib_rec(int); @@ -142,4 +106,3 @@ void fib_ite_print(int n) } } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-14.md b/docs-new/semester_1/internal-practice/IP-14.md @@ -1,65 +1,29 @@ --- -title: IP-14.c -description: "C program source code for IP-14.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-14.c' +description: 'Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration' --- -# `IP-14.c` +# IP-14.c - -!!! abstract "Problem Statement" - Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-14.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-14.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-14.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-14.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-14.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-14.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-14.c] #include <stdio.h> long long int fact_tail_rec(int, long long int); @@ -121,4 +85,3 @@ long long int fact_ite(int n) return result; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-15.md b/docs-new/semester_1/internal-practice/IP-15.md @@ -1,65 +1,29 @@ --- -title: IP-15.c -description: "C program source code for IP-15.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-15.c' +description: 'Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion' --- -# `IP-15.c` +# IP-15.c - -!!! abstract "Problem Statement" - Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-15.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-15.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-15.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-15.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-15.c] #include <stdio.h> int gcd_tail_rec(int, int); @@ -117,4 +81,3 @@ int gcd_ite(int a, int b) return a; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-16.md b/docs-new/semester_1/internal-practice/IP-16.md @@ -1,65 +1,29 @@ --- -title: IP-16.c -description: "C program source code for IP-16.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-16.c' +description: 'Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153' --- -# `IP-16.c` +# IP-16.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153 - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-16.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-16.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. An Armstrong number is a number that is equal to the sum of its own digits each raised to the power of the number of digits. For example, 153 is an Armstrong number because 1^3 + 5^3 + 3^3 = 153 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-16.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-16.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-16.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-16.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-16.c] #include <stdio.h> #include <math.h> @@ -115,4 +79,3 @@ int isArmstrong(int n) return n == checker; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-17.md b/docs-new/semester_1/internal-practice/IP-17.md @@ -1,64 +1,29 @@ --- -title: IP-17.c -description: "C program source code for IP-17.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-17.c' +description: 'Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For example, 28 is a perfect number because the sum of its divisors (1, 2, 4, 7, 14) equals 28.' --- -# `IP-17.c` +# IP-17.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 03 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For example, 28 is a perfect number because the sum of its divisors (1, 2, 4, 7, 14) equals 28. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 03 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. A perfect number is a positive integer that is equal to the sum of its proper divisors, excluding itself. For example, 28 is a perfect number because the sum of its divisors (1, 2, 4, 7, 14) equals 28. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-17.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-17.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-17.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-17.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-17.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-17.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-17.c] #include <stdio.h> int isPerfect(int); @@ -95,4 +60,3 @@ int isPerfect(int n) return temp == n; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-18.md b/docs-new/semester_1/internal-practice/IP-18.md @@ -1,65 +1,29 @@ --- -title: IP-18.c -description: "C program source code for IP-18.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-18.c' +description: 'Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. The function should take an array of integers and its size, and return the largest element in the array.' --- -# `IP-18.c` +# IP-18.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. The function should take an array of integers and its size, and return the largest element in the array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-18.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-18.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. The function should take an array of integers and its size, and return the largest element in the array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-18.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-18.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-18.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-18.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-18.c] #include <stdio.h> void inputArray(int[], int); @@ -99,4 +63,3 @@ int findLargest(int arr[], int size) return largest; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-19.md b/docs-new/semester_1/internal-practice/IP-19.md @@ -1,65 +1,29 @@ --- -title: IP-19.c -description: "C program source code for IP-19.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-19.c' +description: 'Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. The function should perform a binary search on a sorted array of integers and return the index of the target element if found, and -1 otherwise.' --- -# `IP-19.c` +# IP-19.c - -!!! abstract "Problem Statement" - Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. The function should perform a binary search on a sorted array of integers and return the index of the target element if found, and -1 otherwise. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-19.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-19.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. The function should perform a binary search on a sorted array of integers and return the index of the target element if found, and -1 otherwise. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-19.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-19.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-19.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-19.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-19.c] #include <stdio.h> int inputArray(int[], int); @@ -163,4 +127,3 @@ int binarySearch(int arr[], int size, int target) return -1; } ``` -</div> diff --git a/docs-new/semester_1/internal-practice/IP-20.md b/docs-new/semester_1/internal-practice/IP-20.md @@ -1,65 +1,29 @@ --- -title: IP-20.c -description: "C program source code for IP-20.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> IP-20.c' +description: 'Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. The function should reverse the elements of the array.' --- -# `IP-20.c` +# IP-20.c - -!!! abstract "Problem Statement" - Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. The function should reverse the elements of the array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 03 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-20.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-20.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. The function should reverse the elements of the array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-20.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-20.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-20.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-20.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [IP-20.c] #include <stdio.h> void inputArray(int[], int); @@ -107,4 +71,3 @@ void reverseArray(int arr[], int size) } } ``` -</div> diff --git a/docs-new/semester_1/khurapati-idea/KI001.md b/docs-new/semester_1/khurapati-idea/KI001.md @@ -1,60 +1,21 @@ --- -title: KI001.c -description: "C program source code for KI001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> KI001.c' +description: 'C program — KI001.c' --- -# `KI001.c` +# KI001.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [KI001.c] #include <stdio.h> int main() { @@ -77,4 +38,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/khurapati-idea/KI002.md b/docs-new/semester_1/khurapati-idea/KI002.md @@ -1,64 +1,29 @@ --- -title: KI002.c -description: "C program source code for KI002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> KI002.c' +description: 'Plan - checking for edge case' --- -# `KI002.c` +# KI002.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Plan - checking for edge case +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Plan - checking for edge case +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [KI002.c] #include <stdio.h> int main() { @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/khurapati-idea/KI003.md b/docs-new/semester_1/khurapati-idea/KI003.md @@ -1,65 +1,29 @@ --- -title: KI003.c -description: "C program source code for KI003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> KI003.c' +description: 'Bubble sort (with swap)' --- -# `KI003.c` +# KI003.c - -!!! abstract "Problem Statement" - Bubble sort (with swap) - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 24 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Bubble sort (with swap) +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [KI003.c] #include <stdio.h> #include <stdlib.h> #include <stdbool.h> @@ -265,4 +229,3 @@ int dsort(int *arr, int n) return swapCount; } ``` -</div> diff --git a/docs-new/semester_1/khurapati-idea/KI004.md b/docs-new/semester_1/khurapati-idea/KI004.md @@ -1,64 +1,29 @@ --- -title: KI004.c -description: "C program source code for KI004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> KI004.c' +description: 'Trying to write code only with emoji' --- -# `KI004.c` +# KI004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 27 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Trying to write code only with emoji +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 27 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Trying to write code only with emoji +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [KI004.c] #include<stdio.h> #define 😒 int @@ -81,4 +46,3 @@ function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();} 🙌 0😍 😘 ``` -</div> diff --git a/docs-new/semester_1/letusc/luc001.md b/docs-new/semester_1/letusc/luc001.md @@ -1,64 +1,29 @@ --- -title: luc001.c -description: "C program source code for luc001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc001.c' +description: 'Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees.' --- -# `luc001.c` +# luc001.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc001.c] #include<stdio.h> int main() { float f, c; @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc002.md b/docs-new/semester_1/letusc/luc002.md @@ -1,64 +1,29 @@ --- -title: luc002.c -description: "C program source code for luc002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc002.c' +description: 'The length and breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area and perimeter of the rectangle, and the area and circumference of the circle.' --- -# `luc002.c` +# luc002.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - The length and breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area and perimeter of the rectangle, and the area and circumference of the circle. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +The length and breadth of a rectangle and radius of a circle are input through the keyboard. Write a program to calculate the area and perimeter of the rectangle, and the area and circumference of the circle. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc002.c] #include <stdio.h> #include <math.h> int main() @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc003.md b/docs-new/semester_1/letusc/luc003.md @@ -1,64 +1,29 @@ --- -title: luc003.c -description: "C program source code for luc003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc003.c' +description: 'Paper of size AO has dimensions 1189 mm x 841 mm. Each subsequent size A(n) is defined as A(n-1) cut in half, parallel to its shorter sides. Thus, paper of size A1 would have dimensions 841 mm x 594 mm. Write a program to calculate and print paper sizes A0,� A1,�A2,�...�A8.' --- -# `luc003.c` +# luc003.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Paper of size AO has dimensions 1189 mm x 841 mm. Each subsequent size A(n) is defined as A(n-1) cut in half, parallel to its shorter sides. Thus, paper of size A1 would have dimensions 841 mm x 594 mm. Write a program to calculate and print paper sizes A0,� A1,�A2,�...�A8. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Paper of size AO has dimensions 1189 mm x 841 mm. Each subsequent size A(n) is defined as A(n-1) cut in half, parallel to its shorter sides. Thus, paper of size A1 would have dimensions 841 mm x 594 mm. Write a program to calculate and print paper sizes A0,� A1,�A2,�...�A8. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc003.c] #include<stdio.h> #include<math.h> int main() { @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc004.md b/docs-new/semester_1/letusc/luc004.md @@ -1,64 +1,29 @@ --- -title: luc004.c -description: "C program source code for luc004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc004.c' +description: 'If a five digit number is input through the keyboard, write a program to calculate the sum of it''s digit. (Hint : Use the modulus operator %)' --- -# `luc004.c` +# luc004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - If a five digit number is input through the keyboard, write a program to calculate the sum of it's digit. (Hint : Use the modulus operator %) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +If a five digit number is input through the keyboard, write a program to calculate the sum of it's digit. (Hint : Use the modulus operator %) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc004.c] #include <stdio.h> int main() { @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc005.md b/docs-new/semester_1/letusc/luc005.md @@ -1,64 +1,29 @@ --- -title: luc005.c -description: "C program source code for luc005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc005.c' +description: 'Write a program to recive Cartesian co-ordinates (x, y) of a point and convert them into Polar co-ordinates (r, phi) Hint : r = sqrt (x^2 + y^2) and phi = tan^-1 (y/x)' --- -# `luc005.c` +# luc005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to recive Cartesian co-ordinates (x, y) of a point and convert them into Polar co-ordinates (r, phi) Hint : r = sqrt (x^2 + y^2) and phi = tan^-1 (y/x) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to recive Cartesian co-ordinates (x, y) of a point and convert them into Polar co-ordinates (r, phi) Hint : r = sqrt (x^2 + y^2) and phi = tan^-1 (y/x) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc005.c] #include <stdio.h> #include <math.h> int main() @@ -72,4 +37,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc006.md b/docs-new/semester_1/letusc/luc006.md @@ -1,64 +1,29 @@ --- -title: luc006.c -description: "C program source code for luc006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc006.c' +description: 'Write a program to receive values of latitude (L1, L2) and longitude (G1, G2), in degrees, of two places on the earth and output the distance (D) between them in nautical miles. The formula for distance in nautical miles is : D = 3963 cos^-1(sin L1 sin L2 + cos L1 cos L2 * cos(G2 - G1))' --- -# `luc006.c` +# luc006.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to receive values of latitude (L1, L2) and longitude (G1, G2), in degrees, of two places on the earth and output the distance (D) between them in nautical miles. The formula for distance in nautical miles is : D = 3963 cos^-1(sin L1 sin L2 + cos L1 cos L2 * cos(G2 - G1)) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to receive values of latitude (L1, L2) and longitude (G1, G2), in degrees, of two places on the earth and output the distance (D) between them in nautical miles. The formula for distance in nautical miles is : D = 3963 cos^-1(sin L1 sin L2 + cos L1 cos L2 * cos(G2 - G1)) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc006.c] #include <stdio.h> #include <math.h> int main() @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc007.md b/docs-new/semester_1/letusc/luc007.md @@ -1,64 +1,29 @@ --- -title: luc007.c -description: "C program source code for luc007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc007.c' +description: 'Wind-chill factor is the felt air temperature on exposed skin due to wind. The wind-chill temperature is always lower than the air temperature, and is calculated as per the following formula. wcf = 35.74 + 0.6215t + (0.4275t - 35.75) * v^0.16 Where t is temperature and v is wind velocity. Write a program to receive values of t and v and calcualate wind-chill factor (wcf).' --- -# `luc007.c` +# luc007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Wind-chill factor is the felt air temperature on exposed skin due to wind. The wind-chill temperature is always lower than the air temperature, and is calculated as per the following formula. wcf = 35.74 + 0.6215t + (0.4275t - 35.75) * v^0.16 Where t is temperature and v is wind velocity. Write a program to receive values of t and v and calcualate wind-chill factor (wcf). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Wind-chill factor is the felt air temperature on exposed skin due to wind. The wind-chill temperature is always lower than the air temperature, and is calculated as per the following formula. wcf = 35.74 + 0.6215t + (0.4275t - 35.75) * v^0.16 Where t is temperature and v is wind velocity. Write a program to receive values of t and v and calcualate wind-chill factor (wcf). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc007.c] #include <stdio.h> #include <math.h> int main() @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc008.md b/docs-new/semester_1/letusc/luc008.md @@ -1,64 +1,29 @@ --- -title: luc008.c -description: "C program source code for luc008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc008.c' +description: 'If value of an angle is input through the keyboard, write a program to print all its trigonometric ratios.' --- -# `luc008.c` +# luc008.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - If value of an angle is input through the keyboard, write a program to print all its trigonometric ratios. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +If value of an angle is input through the keyboard, write a program to print all its trigonometric ratios. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc008.c] #include <stdio.h> #include <math.h> int main() @@ -84,4 +49,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc009.md b/docs-new/semester_1/letusc/luc009.md @@ -1,64 +1,29 @@ --- -title: luc009.c -description: "C program source code for luc009.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc009.c' +description: 'Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D.' --- -# `luc009.c` +# luc009.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc009.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc009.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc009.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc009.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc009.c] #include <stdio.h> int main() { @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc010.md b/docs-new/semester_1/letusc/luc010.md @@ -1,64 +1,29 @@ --- -title: luc010.c -description: "C program source code for luc010.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc010.c' +description: 'A five-digit number is entered through the keyboard. Write a program to obtain the reversed number and to etermine whether the original and reversed numbers are equal or not.' --- -# `luc010.c` +# luc010.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - A five-digit number is entered through the keyboard. Write a program to obtain the reversed number and to etermine whether the original and reversed numbers are equal or not. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +A five-digit number is entered through the keyboard. Write a program to obtain the reversed number and to etermine whether the original and reversed numbers are equal or not. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc010.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc010.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc010.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc010.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc010.c] #include <stdio.h> int main() { @@ -84,4 +49,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc011.md b/docs-new/semester_1/letusc/luc011.md @@ -1,64 +1,29 @@ --- -title: luc011.c -description: "C program source code for luc011.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc011.c' +description: 'If ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three.' --- -# `luc011.c` +# luc011.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - If ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +If ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc011.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc011.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc011.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc011.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc011.c] #include <stdio.h> int main() { @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc012.md b/docs-new/semester_1/letusc/luc012.md @@ -1,64 +1,29 @@ --- -title: luc012.c -description: "C program source code for luc012.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc012.c' +description: 'Write a program to check whether a triangle is valid or not, if three angles of the triangle are entered through the keyboard. A triangle is valid if the sum of all the three angles is equal to 180 degrees.' --- -# `luc012.c` +# luc012.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check whether a triangle is valid or not, if three angles of the triangle are entered through the keyboard. A triangle is valid if the sum of all the three angles is equal to 180 degrees. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check whether a triangle is valid or not, if three angles of the triangle are entered through the keyboard. A triangle is valid if the sum of all the three angles is equal to 180 degrees. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc012.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc012.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc012.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc012.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc012.c] #include <stdio.h> int main() { @@ -73,4 +38,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc013.md b/docs-new/semester_1/letusc/luc013.md @@ -1,64 +1,29 @@ --- -title: luc013.c -description: "C program source code for luc013.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc013.c' +description: 'Write a program to find the absolute value of a number entered through the keyboard.' --- -# `luc013.c` +# luc013.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find the absolute value of a number entered through the keyboard. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find the absolute value of a number entered through the keyboard. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc013.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc013.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc013.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc013.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc013.c] #include <stdio.h> #include <math.h> int main() @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc014.md b/docs-new/semester_1/letusc/luc014.md @@ -1,64 +1,29 @@ --- -title: luc014.c -description: "C program source code for luc014.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc014.c' +description: 'Given the length and breadth of a rectangle, write a program to find whether the area of the rectangle is greater than it''s perimeter. For example, the area of the rectangle with length = 5 and breadth = 4 is greater than its perimeter.' --- -# `luc014.c` +# luc014.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Given the length and breadth of a rectangle, write a program to find whether the area of the rectangle is greater than it's perimeter. For example, the area of the rectangle with length = 5 and breadth = 4 is greater than its perimeter. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Given the length and breadth of a rectangle, write a program to find whether the area of the rectangle is greater than it's perimeter. For example, the area of the rectangle with length = 5 and breadth = 4 is greater than its perimeter. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc014.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc014.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc014.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc014.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc014.c] #include <stdio.h> int main() { @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc015.md b/docs-new/semester_1/letusc/luc015.md @@ -1,64 +1,29 @@ --- -title: luc015.c -description: "C program source code for luc015.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc015.c' +description: 'Given three points (x1, y1), (x2, y2), and (x3, y3), write a program to check if the three poins fall on one straight line.' --- -# `luc015.c` +# luc015.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Given three points (x1, y1), (x2, y2), and (x3, y3), write a program to check if the three poins fall on one straight line. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Given three points (x1, y1), (x2, y2), and (x3, y3), write a program to check if the three poins fall on one straight line. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc015.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc015.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc015.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc015.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc015.c] #include <stdio.h> #include <math.h> #define EPSILON 0.0001 @@ -81,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc016.md b/docs-new/semester_1/letusc/luc016.md @@ -1,65 +1,29 @@ --- -title: luc016.c -description: "C program source code for luc016.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc016.c' +description: 'Given the coordiantes (x, y) of center of a circle and its radius, write a program that will determine whether a point lies inside the circle, on the circle or outside the circle. (Hint : Use sqrt() and pow() functions.)' --- -# `luc016.c` +# luc016.c - -!!! abstract "Problem Statement" - Given the coordiantes (x, y) of center of a circle and its radius, write a program that will determine whether a point lies inside the circle, on the circle or outside the circle. (Hint : Use sqrt() and pow() functions.) - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc016.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc016.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Given the coordiantes (x, y) of center of a circle and its radius, write a program that will determine whether a point lies inside the circle, on the circle or outside the circle. (Hint : Use sqrt() and pow() functions.) +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc016.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc016.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc016.c] #include <stdio.h> #include <math.h> // Define a small tolerance value (EPSILON) for reliable floating-point comparison @@ -97,4 +61,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc017.md b/docs-new/semester_1/letusc/luc017.md @@ -1,64 +1,29 @@ --- -title: luc017.c -description: "C program source code for luc017.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc017.c' +description: 'Given a point (x, y), write a program to find out if it lies on X-axis, Y-axis or origin.' --- -# `luc017.c` +# luc017.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Given a point (x, y), write a program to find out if it lies on X-axis, Y-axis or origin. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Given a point (x, y), write a program to find out if it lies on X-axis, Y-axis or origin. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc017.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc017.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc017.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc017.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc017.c] #include <stdio.h> #include <math.h> #define EPSILON 0.00001 @@ -79,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc018-logic.md b/docs-new/semester_1/letusc/luc018-logic.md @@ -1,65 +1,29 @@ --- -title: luc018-logic.c -description: "C program source code for luc018-logic.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc018-logic.c' +description: 'According to Gregorian calender, it was Monday on the date 01/01/01. Write a program to find out what is the day on 1st January of any input year.' --- -# `luc018-logic.c` +# luc018-logic.c - -!!! abstract "Problem Statement" - According to Gregorian calender, it was Monday on the date 01/01/01. Write a program to find out what is the day on 1st January of any input year. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018-logic.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018-logic.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +According to Gregorian calender, it was Monday on the date 01/01/01. Write a program to find out what is the day on 1st January of any input year. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018-logic.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018-logic.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018-logic.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018-logic.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc018-logic.c] #include <stdio.h> /** @@ -143,4 +107,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc018.md b/docs-new/semester_1/letusc/luc018.md @@ -1,64 +1,29 @@ --- -title: luc018.c -description: "C program source code for luc018.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc018.c' +description: 'According to Gregorian calender, it was Monday on the date 01/01/01. if any year is input through the keyboard write a program to find out what is the day on 1st January of this year.' --- -# `luc018.c` +# luc018.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - According to Gregorian calender, it was Monday on the date 01/01/01. if any year is input through the keyboard write a program to find out what is the day on 1st January of this year. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +According to Gregorian calender, it was Monday on the date 01/01/01. if any year is input through the keyboard write a program to find out what is the day on 1st January of this year. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc018.c] #include <stdio.h> int is_leap(int year) { @@ -90,4 +55,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc019.md b/docs-new/semester_1/letusc/luc019.md @@ -1,65 +1,29 @@ --- -title: luc019.c -description: "C program source code for luc019.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc019.c' +description: 'If the length of three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is an isosceles, an equilateral, a scalene or a right-angled triangle.' --- -# `luc019.c` +# luc019.c - -!!! abstract "Problem Statement" - If the length of three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is an isosceles, an equilateral, a scalene or a right-angled triangle. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc019.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc019.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +If the length of three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is an isosceles, an equilateral, a scalene or a right-angled triangle. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc019.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc019.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc019.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc019.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc019.c] #include <stdio.h> #include <math.h> @@ -107,4 +71,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc020.md b/docs-new/semester_1/letusc/luc020.md @@ -1,65 +1,29 @@ --- -title: luc020.c -description: "C program source code for luc020.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc020.c' +description: 'In digital world colors are specified in Red-Green-Blue (RGB) format, with values of R, G, B varying on an integer scale from 0 to 255. In print publishing the colors are mentioned in Cyan-Magenta-Yellow-Black (CMYK) format, with values of C, M, Y, and K varying on a real scale from 0.0 to 1.0. Write a program that converts RGB color to CMYK color as per the following formulae: White = Max(Red/255, Green/255, Blue/255) Cyan = (White-Red/255) / White Magenta = (White-Green/255) / White Yellow = (White-Blue/255) / White Black = 1 - White Note that if the RGB values are all 0, then the CMY values are all 0 and the K value is 1.' --- -# `luc020.c` +# luc020.c - -!!! abstract "Problem Statement" - In digital world colors are specified in Red-Green-Blue (RGB) format, with values of R, G, B varying on an integer scale from 0 to 255. In print publishing the colors are mentioned in Cyan-Magenta-Yellow-Black (CMYK) format, with values of C, M, Y, and K varying on a real scale from 0.0 to 1.0. Write a program that converts RGB color to CMYK color as per the following formulae: White = Max(Red/255, Green/255, Blue/255) Cyan = (White-Red/255) / White Magenta = (White-Green/255) / White Yellow = (White-Blue/255) / White Black = 1 - White Note that if the RGB values are all 0, then the CMY values are all 0 and the K value is 1. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc020.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc020.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +In digital world colors are specified in Red-Green-Blue (RGB) format, with values of R, G, B varying on an integer scale from 0 to 255. In print publishing the colors are mentioned in Cyan-Magenta-Yellow-Black (CMYK) format, with values of C, M, Y, and K varying on a real scale from 0.0 to 1.0. Write a program that converts RGB color to CMYK color as per the following formulae: White = Max(Red/255, Green/255, Blue/255) Cyan = (White-Red/255) / White Magenta = (White-Green/255) / White Yellow = (White-Blue/255) / White Black = 1 - White Note that if the RGB values are all 0, then the CMY values are all 0 and the K value is 1. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc020.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc020.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc020.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc020.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc020.c] #include <stdio.h> // declaring function @@ -110,4 +74,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc021.md b/docs-new/semester_1/letusc/luc021.md @@ -1,65 +1,29 @@ --- -title: luc021.c -description: "C program source code for luc021.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc021.c' +description: 'A certain grade of steel is graded according to the following conditions: (i) Hardness must be greater than 50 (ii) Carbon content must be less than 0.7 (iii) Tensile strength must be greater than 5600 The grades are as follows: Grade is 10 if all three conditions are met Grade is 9 if conditions (i) and (ii) are met Grade is 8 if conditions (ii) and (iii) are met Grade is 7 if conditions (i) and (iii) are met Grade is 6 if only one condition is met Grade is 5 if none of the conditions are met Write a program, which will require the user to give values of hardness, carbon content and tensile strength of the steel under consideration and output the grade of the steel.' --- -# `luc021.c` +# luc021.c - -!!! abstract "Problem Statement" - A certain grade of steel is graded according to the following conditions: (i) Hardness must be greater than 50 (ii) Carbon content must be less than 0.7 (iii) Tensile strength must be greater than 5600 The grades are as follows: Grade is 10 if all three conditions are met Grade is 9 if conditions (i) and (ii) are met Grade is 8 if conditions (ii) and (iii) are met Grade is 7 if conditions (i) and (iii) are met Grade is 6 if only one condition is met Grade is 5 if none of the conditions are met Write a program, which will require the user to give values of hardness, carbon content and tensile strength of the steel under consideration and output the grade of the steel. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc021.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc021.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +A certain grade of steel is graded according to the following conditions: (i) Hardness must be greater than 50 (ii) Carbon content must be less than 0.7 (iii) Tensile strength must be greater than 5600 The grades are as follows: Grade is 10 if all three conditions are met Grade is 9 if conditions (i) and (ii) are met Grade is 8 if conditions (ii) and (iii) are met Grade is 7 if conditions (i) and (iii) are met Grade is 6 if only one condition is met Grade is 5 if none of the conditions are met Write a program, which will require the user to give values of hardness, carbon content and tensile strength of the steel under consideration and output the grade of the steel. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc021.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc021.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc021.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc021.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc021.c] #include <stdio.h> int main() { @@ -110,4 +74,3 @@ int main() /* I did not used this long variable names. I used very short just the first letter of the word. After writting the whole program, I just renamed the valiables. This is possible in Visual Stdio Code. */ ``` -</div> diff --git a/docs-new/semester_1/letusc/luc022.md b/docs-new/semester_1/letusc/luc022.md @@ -1,65 +1,29 @@ --- -title: luc022.c -description: "C program source code for luc022.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc022.c' +description: 'The Body Mass Index (BMI) is defined as ratio of weight of the person (in Kilograms) to square of the height (in meters). Write a program that receives weight and height, calculate the BMI, and reports the BMI catagory as per the following table. BMI Catagory BMI Starvation < 15 Anorexic 15.1 to 17.5 Underweight 17.6 to 18.5 Ideal 18.6 to 24.9 Overweight 25 to 25.9 Obese 30 to 39.9 Morbidly Obese >= 40' --- -# `luc022.c` +# luc022.c - -!!! abstract "Problem Statement" - The Body Mass Index (BMI) is defined as ratio of weight of the person (in Kilograms) to square of the height (in meters). Write a program that receives weight and height, calculate the BMI, and reports the BMI catagory as per the following table. BMI Catagory BMI Starvation < 15 Anorexic 15.1 to 17.5 Underweight 17.6 to 18.5 Ideal 18.6 to 24.9 Overweight 25 to 25.9 Obese 30 to 39.9 Morbidly Obese >= 40 - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc022.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc022.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +The Body Mass Index (BMI) is defined as ratio of weight of the person (in Kilograms) to square of the height (in meters). Write a program that receives weight and height, calculate the BMI, and reports the BMI catagory as per the following table. BMI Catagory BMI Starvation &lt; 15 Anorexic 15.1 to 17.5 Underweight 17.6 to 18.5 Ideal 18.6 to 24.9 Overweight 25 to 25.9 Obese 30 to 39.9 Morbidly Obese &gt;= 40 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc022.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc022.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc022.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc022.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc022.c] #include <stdio.h> int main() @@ -88,4 +52,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc023.md b/docs-new/semester_1/letusc/luc023.md @@ -1,64 +1,29 @@ --- -title: luc023.c -description: "C program source code for luc023.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc023.c' +description: 'Using conditional operators determine : (1) Whether the character entered through the keyboard is a lower case alphabet or not. (2) Whether a character entered through the keyboard is a special symbol or not.' --- -# `luc023.c` +# luc023.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Using conditional operators determine : (1) Whether the character entered through the keyboard is a lower case alphabet or not. (2) Whether a character entered through the keyboard is a special symbol or not. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Using conditional operators determine : (1) Whether the character entered through the keyboard is a lower case alphabet or not. (2) Whether a character entered through the keyboard is a special symbol or not. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc023.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc023.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc023.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc023.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc023.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc023.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc023.c] #include <stdio.h> int main() { @@ -73,4 +38,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc024.md b/docs-new/semester_1/letusc/luc024.md @@ -1,64 +1,29 @@ --- -title: luc024.c -description: "C program source code for luc024.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc024.c' +description: 'Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not.' --- -# `luc024.c` +# luc024.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc024.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc024.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc024.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc024.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc024.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc024.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc024.c] #include <stdio.h> int main() { @@ -69,4 +34,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc025.md b/docs-new/semester_1/letusc/luc025.md @@ -1,64 +1,29 @@ --- -title: luc025.c -description: "C program source code for luc025.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc025.c' +description: 'Write a program to find the greates of the three numbers entered through the keyboard. Use conditional operators.' --- -# `luc025.c` +# luc025.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find the greates of the three numbers entered through the keyboard. Use conditional operators. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find the greates of the three numbers entered through the keyboard. Use conditional operators. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc025.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc025.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc025.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc025.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc025.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc025.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc025.c] #include <stdio.h> int main() { @@ -70,4 +35,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc026.md b/docs-new/semester_1/letusc/luc026.md @@ -1,64 +1,29 @@ --- -title: luc026.c -description: "C program source code for luc026.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc026.c' +description: 'Write a program to recieve value of an angle in degreesand check whether sum of squares of sine and cosine of this angle is equal to 1.' --- -# `luc026.c` +# luc026.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to recieve value of an angle in degreesand check whether sum of squares of sine and cosine of this angle is equal to 1. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to recieve value of an angle in degreesand check whether sum of squares of sine and cosine of this angle is equal to 1. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc026.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc026.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc026.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc026.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc026.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc026.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc026.c] #include <stdio.h> #include <math.h> #define EPSILON 0.0000001 @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc027.md b/docs-new/semester_1/letusc/luc027.md @@ -1,60 +1,21 @@ --- -title: luc027.c -description: "C program source code for luc027.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc027.c' +description: 'C program — luc027.c' --- -# `luc027.c` +# luc027.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc027.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc027.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc027.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc027.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc027.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc027.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc027.c] #include<stdio.h> int main() { @@ -84,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc028.md b/docs-new/semester_1/letusc/luc028.md @@ -1,64 +1,29 @@ --- -title: luc028.c -description: "C program source code for luc028.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc028.c' +description: 'Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII may vary from 0 to 255.' --- -# `luc028.c` +# luc028.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII may vary from 0 to 255. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII may vary from 0 to 255. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc028.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc028.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc028.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc028.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc028.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc028.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc028.c] #include <stdio.h> int main() { @@ -73,4 +38,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc029.md b/docs-new/semester_1/letusc/luc029.md @@ -1,64 +1,29 @@ --- -title: luc029.c -description: "C program source code for luc029.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc029.c' +description: 'Write a program to print out all Armstrong numbers between 100 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number. For example, 153 = (1 * 1 * 1) + (5 * 5 * 5) + (3 * 3 * 3)' --- -# `luc029.c` +# luc029.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to print out all Armstrong numbers between 100 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number. For example, 153 = (1 * 1 * 1) + (5 * 5 * 5) + (3 * 3 * 3) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to print out all Armstrong numbers between 100 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number. For example, 153 = (1 * 1 * 1) + (5 * 5 * 5) + (3 * 3 * 3) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc029.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc029.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc029.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc029.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc029.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc029.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc029.c] #include <stdio.h> #include <math.h> int main() @@ -82,4 +47,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc030.md b/docs-new/semester_1/letusc/luc030.md @@ -1,65 +1,29 @@ --- -title: luc030.c -description: "C program source code for luc030.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc030.c' +description: 'Write a program for a matchstick game being played between the computer and a user. Your program should ensure that the computer always wins. Rules for the game are as follows : - There are 21 matchsticks. - The computer asks the player to pick 1, 2, 3, or 4 matchsticks. - After the person picks, the computer does its picking. - Whoever is forced to pick up the last matchstick loses the game.' --- -# `luc030.c` +# luc030.c - -!!! abstract "Problem Statement" - Write a program for a matchstick game being played between the computer and a user. Your program should ensure that the computer always wins. Rules for the game are as follows : - There are 21 matchsticks. - The computer asks the player to pick 1, 2, 3, or 4 matchsticks. - After the person picks, the computer does its picking. - Whoever is forced to pick up the last matchstick loses the game. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc030.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc030.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program for a matchstick game being played between the computer and a user. Your program should ensure that the computer always wins. Rules for the game are as follows : - There are 21 matchsticks. - The computer asks the player to pick 1, 2, 3, or 4 matchsticks. - After the person picks, the computer does its picking. - Whoever is forced to pick up the last matchstick loses the game. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc030.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc030.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc030.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc030.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc030.c] #include <stdio.h> int main() { @@ -117,4 +81,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc031-logic.md b/docs-new/semester_1/letusc/luc031-logic.md @@ -1,65 +1,29 @@ --- -title: luc031-logic.c -description: "C program source code for luc031-logic.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc031-logic.c' +description: 'Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered.' --- -# `luc031-logic.c` +# luc031-logic.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031-logic.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031-logic.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031-logic.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031-logic.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031-logic.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031-logic.c) + +```c [luc031-logic.c] #include <stdio.h> #include <stdlib.h> // for strtol #include <string.h> // for strcmp @@ -137,4 +101,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc031.md b/docs-new/semester_1/letusc/luc031.md @@ -1,64 +1,29 @@ --- -title: luc031.c -description: "C program source code for luc031.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc031.c' +description: 'Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered.' --- -# `luc031.c` +# luc031.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc031.c] #include <stdio.h> int main() { @@ -95,4 +60,3 @@ int main() printf("====================================\n"); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc032.md b/docs-new/semester_1/letusc/luc032.md @@ -1,64 +1,29 @@ --- -title: luc032.c -description: "C program source code for luc032.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc032.c' +description: 'Write a program to recieve an integer and find its octal equivalent. (Hint : To obtain octal equivalent of an integer, Divide it continuously by 8 till dividend does not become zero, then write the remainders obtained in reverse derection.)' --- -# `luc032.c` +# luc032.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to recieve an integer and find its octal equivalent. (Hint : To obtain octal equivalent of an integer, Divide it continuously by 8 till dividend does not become zero, then write the remainders obtained in reverse derection.) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to recieve an integer and find its octal equivalent. (Hint : To obtain octal equivalent of an integer, Divide it continuously by 8 till dividend does not become zero, then write the remainders obtained in reverse derection.) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc032.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc032.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc032.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc032.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc032.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc032.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc032.c] #include <stdio.h> int main() { @@ -82,4 +47,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc033.md b/docs-new/semester_1/letusc/luc033.md @@ -1,64 +1,29 @@ --- -title: luc033.c -description: "C program source code for luc033.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc033.c' +description: 'Write a program to find the range of a set of numbers entered through the keyboard. Range is the difference between the smallest and biggest number in the list.' --- -# `luc033.c` +# luc033.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find the range of a set of numbers entered through the keyboard. Range is the difference between the smallest and biggest number in the list. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find the range of a set of numbers entered through the keyboard. Range is the difference between the smallest and biggest number in the list. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc033.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc033.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc033.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc033.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc033.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc033.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc033.c] #include <stdio.h> int main() { @@ -93,4 +58,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc034.md b/docs-new/semester_1/letusc/luc034.md @@ -1,64 +1,29 @@ --- -title: luc034.c -description: "C program source code for luc034.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc034.c' +description: 'Write a program to print the multiplication table of the number entered by the user. The table should get displayed in the following form : 29 * 1 = 29 29 * 2 = 58' --- -# `luc034.c` +# luc034.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to print the multiplication table of the number entered by the user. The table should get displayed in the following form : 29 * 1 = 29 29 * 2 = 58 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to print the multiplication table of the number entered by the user. The table should get displayed in the following form : 29 * 1 = 29 29 * 2 = 58 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc034.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc034.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc034.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc034.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc034.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc034.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc034.c] #include <stdio.h> int main() { @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc035.md b/docs-new/semester_1/letusc/luc035.md @@ -1,64 +1,29 @@ --- -title: luc035.c -description: "C program source code for luc035.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc035.c' +description: 'According to a study, the approximate level of intelligence of a person can be calculated using the following formula. i = 2 + (y + 0.5x) write a program that will produce a table of values of i, y and x, where y varies from 1 to 6, and, for each value of y, x varies from 5.5 to 12.5 in steps of 0.5' --- -# `luc035.c` +# luc035.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - According to a study, the approximate level of intelligence of a person can be calculated using the following formula. i = 2 + (y + 0.5x) write a program that will produce a table of values of i, y and x, where y varies from 1 to 6, and, for each value of y, x varies from 5.5 to 12.5 in steps of 0.5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +According to a study, the approximate level of intelligence of a person can be calculated using the following formula. i = 2 + (y + 0.5x) write a program that will produce a table of values of i, y and x, where y varies from 1 to 6, and, for each value of y, x varies from 5.5 to 12.5 in steps of 0.5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc035.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc035.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc035.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc035.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc035.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc035.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc035.c] #include <stdio.h> int main() { @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc036.md b/docs-new/semester_1/letusc/luc036.md @@ -1,64 +1,29 @@ --- -title: luc036.c -description: "C program source code for luc036.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc036.c' +description: 'When interest compounds q times per year at an annual rate of r % for n years, the principle p compounds to an amount a as per the following formula a = p (1 + r / q) ^ nq Write a program to read 10 sets of p, r, n & q and calculate the corresponding as''' --- -# `luc036.c` +# luc036.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - When interest compounds q times per year at an annual rate of r % for n years, the principle p compounds to an amount a as per the following formula a = p (1 + r / q) ^ nq Write a program to read 10 sets of p, r, n & q and calculate the corresponding as' +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +When interest compounds q times per year at an annual rate of r % for n years, the principle p compounds to an amount a as per the following formula a = p (1 + r / q) ^ nq Write a program to read 10 sets of p, r, n &amp; q and calculate the corresponding as' +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc036.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc036.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc036.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc036.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc036.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc036.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc036.c] #include <stdio.h> #include <math.h> int main() @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc037.md b/docs-new/semester_1/letusc/luc037.md @@ -1,64 +1,29 @@ --- -title: luc037.c -description: "C program source code for luc037.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc037.c' +description: 'The natural logarithm can be approximated by the following series. (x-1)/x + 1/2 ((x-1)/x)^2 + 1/2 ((x-1)/x)^3 + 1/2 ((x-1)/x)^4 + ... If x is input through the keyboard, write a program to calculate the sum of the first seven terms of this series.' --- -# `luc037.c` +# luc037.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - The natural logarithm can be approximated by the following series. (x-1)/x + 1/2 ((x-1)/x)^2 + 1/2 ((x-1)/x)^3 + 1/2 ((x-1)/x)^4 + ... If x is input through the keyboard, write a program to calculate the sum of the first seven terms of this series. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +The natural logarithm can be approximated by the following series. (x-1)/x + 1/2 ((x-1)/x)^2 + 1/2 ((x-1)/x)^3 + 1/2 ((x-1)/x)^4 + ... If x is input through the keyboard, write a program to calculate the sum of the first seven terms of this series. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc037.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc037.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc037.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc037.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc037.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc037.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc037.c] #include <stdio.h> #include <math.h> @@ -82,4 +47,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc038.md b/docs-new/semester_1/letusc/luc038.md @@ -1,64 +1,29 @@ --- -title: luc038.c -description: "C program source code for luc038.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc038.c' +description: 'Write a program to generate all Pythagorean Triplets with slide length less than or equal to 30.' --- -# `luc038.c` +# luc038.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to generate all Pythagorean Triplets with slide length less than or equal to 30. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to generate all Pythagorean Triplets with slide length less than or equal to 30. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc038.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc038.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc038.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc038.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc038.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc038.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc038.c] #include <stdio.h> #include <math.h> @@ -81,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc039.md b/docs-new/semester_1/letusc/luc039.md @@ -1,64 +1,29 @@ --- -title: luc039.c -description: "C program source code for luc039.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc039.c' +description: 'Population of a town today is 100000. The population has increased steadily at the rate of 10% per year for last 10 years. Write a program to determine the population at the end of each year in the last decade.' --- -# `luc039.c` +# luc039.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Population of a town today is 100000. The population has increased steadily at the rate of 10% per year for last 10 years. Write a program to determine the population at the end of each year in the last decade. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Population of a town today is 100000. The population has increased steadily at the rate of 10% per year for last 10 years. Write a program to determine the population at the end of each year in the last decade. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc039.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc039.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc039.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc039.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc039.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc039.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc039.c] #include <stdio.h> int main() { @@ -72,4 +37,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc040-logic.md b/docs-new/semester_1/letusc/luc040-logic.md @@ -1,65 +1,29 @@ --- -title: luc040-logic.c -description: "C program source code for luc040-logic.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc040-logic.c' +description: 'Ramanujan number (1729) is the smallest number that can be expressed as sum of cubes in two different ways - 1729 can be expressed as 1^3 + 12^3 and 9^3 + 10^3. Write a program to print all such numbers up to a reasonable limit.' --- -# `luc040-logic.c` +# luc040-logic.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Ramanujan number (1729) is the smallest number that can be expressed as sum of cubes in two different ways - 1729 can be expressed as 1^3 + 12^3 and 9^3 + 10^3. Write a program to print all such numbers up to a reasonable limit. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040-logic.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040-logic.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040-logic.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040-logic.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Ramanujan number (1729) is the smallest number that can be expressed as sum of cubes in two different ways - 1729 can be expressed as 1^3 + 12^3 and 9^3 + 10^3. Write a program to print all such numbers up to a reasonable limit. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040-logic.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040-logic.c) + +```c [luc040-logic.c] #include <stdio.h> // Includes the standard input/output library, necessary for printf() // 2. CONSTANT DEFINITIONS (MACROS) @@ -180,4 +144,3 @@ int main() return 0; // Standard way to indicate successful program execution. } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc040.md b/docs-new/semester_1/letusc/luc040.md @@ -1,65 +1,29 @@ --- -title: luc040.c -description: "C program source code for luc040.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc040.c' +description: 'Ramanujan number (1729) is the smallest number that can be expressed as sum of cubes in two different ways - 1729 can be expressed as 1^3 + 12^3 and 9^3 + 10^3. Write a program to print all such numbers up to a reasonable limit.' --- -# `luc040.c` +# luc040.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Ramanujan number (1729) is the smallest number that can be expressed as sum of cubes in two different ways - 1729 can be expressed as 1^3 + 12^3 and 9^3 + 10^3. Write a program to print all such numbers up to a reasonable limit. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Ramanujan number (1729) is the smallest number that can be expressed as sum of cubes in two different ways - 1729 can be expressed as 1^3 + 12^3 and 9^3 + 10^3. Write a program to print all such numbers up to a reasonable limit. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040.c) + +```c [luc040.c] #include <stdio.h> #define limit 100000 @@ -119,4 +83,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc041.md b/docs-new/semester_1/letusc/luc041.md @@ -1,64 +1,29 @@ --- -title: luc041.c -description: "C program source code for luc041.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc041.c' +description: 'Write a program to print 24 hours of day with suitable suffixes like AM, PM, Noon and Midnight.' --- -# `luc041.c` +# luc041.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to print 24 hours of day with suitable suffixes like AM, PM, Noon and Midnight. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to print 24 hours of day with suitable suffixes like AM, PM, Noon and Midnight. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc041.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc041.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc041.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc041.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc041.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc041.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc041.c] #include <stdio.h> int main() { @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc042.md b/docs-new/semester_1/letusc/luc042.md @@ -1,64 +1,29 @@ --- -title: luc042.c -description: "C program source code for luc042.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc042.c' +description: 'Write a program to produce the following output : 1 2 3 4 5 6 7 8 9 10' --- -# `luc042.c` +# luc042.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to produce the following output : 1 2 3 4 5 6 7 8 9 10 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to produce the following output : 1 2 3 4 5 6 7 8 9 10 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc042.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc042.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc042.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc042.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc042.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc042.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc042.c] #include <stdio.h> int main() { @@ -88,4 +53,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc043.md b/docs-new/semester_1/letusc/luc043.md @@ -1,65 +1,29 @@ --- -title: luc043.c -description: "C program source code for luc043.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc043.c' +description: 'Write a program to find the grace marks for a student using switch. The user should enter the class obtained by the student and the number of subjects he has failed in. Use the following logic. - If the student gets first class and he fails in more than 3 subjects, he does not get any grace, Otherwise, he gets a grace of 5 marks per subject. - If the student gets second class and he fails in more than 2 subjects, he does not get any grace. Otherwise, he gets a grace of 4 marks per subject. - If the student gets third class and he fails in more than 1 subject, then he does not get any grace. Otherwise, he gets a grace of 5 marks.' --- -# `luc043.c` +# luc043.c - -!!! abstract "Problem Statement" - Write a program to find the grace marks for a student using switch. The user should enter the class obtained by the student and the number of subjects he has failed in. Use the following logic. - If the student gets first class and he fails in more than 3 subjects, he does not get any grace, Otherwise, he gets a grace of 5 marks per subject. - If the student gets second class and he fails in more than 2 subjects, he does not get any grace. Otherwise, he gets a grace of 4 marks per subject. - If the student gets third class and he fails in more than 1 subject, then he does not get any grace. Otherwise, he gets a grace of 5 marks. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc043.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc043.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to find the grace marks for a student using switch. The user should enter the class obtained by the student and the number of subjects he has failed in. Use the following logic. - If the student gets first class and he fails in more than 3 subjects, he does not get any grace, Otherwise, he gets a grace of 5 marks per subject. - If the student gets second class and he fails in more than 2 subjects, he does not get any grace. Otherwise, he gets a grace of 4 marks per subject. - If the student gets third class and he fails in more than 1 subject, then he does not get any grace. Otherwise, he gets a grace of 5 marks. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc043.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc043.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc043.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc043.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc043.c] #include <stdio.h> int main() @@ -107,4 +71,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc044.md b/docs-new/semester_1/letusc/luc044.md @@ -1,64 +1,29 @@ --- -title: luc044.c -description: "C program source code for luc044.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc044.c' +description: 'Any year is entered through the keyboard. Write a function to determine whether the year is aleap year or not.' --- -# `luc044.c` +# luc044.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Any year is entered through the keyboard. Write a function to determine whether the year is aleap year or not. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Any year is entered through the keyboard. Write a function to determine whether the year is aleap year or not. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc044.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc044.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc044.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc044.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc044.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc044.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc044.c] #include <stdio.h> int leapYear(int); @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc045.md b/docs-new/semester_1/letusc/luc045.md @@ -1,65 +1,29 @@ --- -title: luc045.c -description: "C program source code for luc045.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc045.c' +description: 'A position integer is entered through the keyboard. Write a Function to obtain the prime factors of this number. For example, prime factors of 24 are 2, 2, 2 and 3, whereas prime factors of 35 are 5 and 7' --- -# `luc045.c` +# luc045.c - -!!! abstract "Problem Statement" - A position integer is entered through the keyboard. Write a Function to obtain the prime factors of this number. For example, prime factors of 24 are 2, 2, 2 and 3, whereas prime factors of 35 are 5 and 7 - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc045.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc045.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +A position integer is entered through the keyboard. Write a Function to obtain the prime factors of this number. For example, prime factors of 24 are 2, 2, 2 and 3, whereas prime factors of 35 are 5 and 7 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc045.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc045.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc045.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc045.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc045.c] #include <stdio.h> #include <math.h> @@ -116,4 +80,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc046.md b/docs-new/semester_1/letusc/luc046.md @@ -1,64 +1,29 @@ --- -title: luc046.c -description: "C program source code for luc046.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc046.c' +description: 'Given three variables x, y, z, write a function to circularly shift their values to right. In other words, if x = 5, y = 8, z = 10, after circular shift y = 5, z = 8, x = 10. cal the function with variables a, b, c to circularly shift values.' --- -# `luc046.c` +# luc046.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Given three variables x, y, z, write a function to circularly shift their values to right. In other words, if x = 5, y = 8, z = 10, after circular shift y = 5, z = 8, x = 10. cal the function with variables a, b, c to circularly shift values. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Given three variables x, y, z, write a function to circularly shift their values to right. In other words, if x = 5, y = 8, z = 10, after circular shift y = 5, z = 8, x = 10. cal the function with variables a, b, c to circularly shift values. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc046.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc046.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc046.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc046.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc046.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc046.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc046.c] #include <stdio.h> void circularShift(int *, int *, int *); @@ -86,4 +51,3 @@ void circularShift(int *x, int *y, int *z) *x = temp; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc047.md b/docs-new/semester_1/letusc/luc047.md @@ -1,64 +1,29 @@ --- -title: luc047.c -description: "C program source code for luc047.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc047.c' +description: 'Define a function that receives weight of a commodity in kilograms and returns the equivalent weight in Grams, Tons and pounds. Call this fuction from main() and print the results in main()' --- -# `luc047.c` +# luc047.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Define a function that receives weight of a commodity in kilograms and returns the equivalent weight in Grams, Tons and pounds. Call this fuction from main() and print the results in main() +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Define a function that receives weight of a commodity in kilograms and returns the equivalent weight in Grams, Tons and pounds. Call this fuction from main() and print the results in main() +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc047.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc047.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc047.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc047.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc047.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc047.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc047.c] #include <stdio.h> void convertWeight(double, double *, double *, double *); @@ -84,4 +49,3 @@ void convertWeight(double weightKG, double *weightGram, double *weightPound, dou *weightTON = weightKG / 1000.0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc048.md b/docs-new/semester_1/letusc/luc048.md @@ -1,65 +1,29 @@ --- -title: luc048.c -description: "C program source code for luc048.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc048.c' +description: 'Define a function to compute the distance between two points and use it to develop another function that will compute the area of the triangle whose vertices are A(x1, y1), B(x2, y2), and C(x3, y3). Use these functions to develop a function which returns a value 1 if the point (x, y) lines inside the triangle ABC, otherwise returns a value 0. Would you get any advantage if you develop these functions to work on call by reference principle?' --- -# `luc048.c` +# luc048.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Define a function to compute the distance between two points and use it to develop another function that will compute the area of the triangle whose vertices are A(x1, y1), B(x2, y2), and C(x3, y3). Use these functions to develop a function which returns a value 1 if the point (x, y) lines inside the triangle ABC, otherwise returns a value 0. Would you get any advantage if you develop these functions to work on call by reference principle? +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc048.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc048.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc048.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc048.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Define a function to compute the distance between two points and use it to develop another function that will compute the area of the triangle whose vertices are A(x1, y1), B(x2, y2), and C(x3, y3). Use these functions to develop a function which returns a value 1 if the point (x, y) lines inside the triangle ABC, otherwise returns a value 0. Would you get any advantage if you develop these functions to work on call by reference principle? +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc048.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc048.c) + +```c [luc048.c] #include <stdio.h> #include <math.h> #include <ctype.h> @@ -228,4 +192,3 @@ Test Point (101.1, 201.2) is inside ABC. */ ``` -</div> diff --git a/docs-new/semester_1/letusc/luc049.md b/docs-new/semester_1/letusc/luc049.md @@ -1,65 +1,29 @@ --- -title: luc049.c -description: "C program source code for luc049.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc049.c' +description: 'A positive integer is entered through the keyboard, write a function to find the binary equivalent of this number: (1) Without using recursion (2) Using recursion' --- -# `luc049.c` +# luc049.c - -!!! abstract "Problem Statement" - A positive integer is entered through the keyboard, write a function to find the binary equivalent of this number: (1) Without using recursion (2) Using recursion - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc049.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc049.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +A positive integer is entered through the keyboard, write a function to find the binary equivalent of this number: (1) Without using recursion (2) Using recursion +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc049.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc049.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc049.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc049.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc049.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -105,4 +69,3 @@ void binary_rec(int n) printf("%d", n % 2); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc050.md b/docs-new/semester_1/letusc/luc050.md @@ -1,65 +1,29 @@ --- -title: luc050.c -description: "C program source code for luc050.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc050.c' +description: 'Write a recursive function to obtain the sum of first 25 natural numbers.' --- -# `luc050.c` +# luc050.c - -!!! abstract "Problem Statement" - Write a recursive function to obtain the sum of first 25 natural numbers. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc050.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc050.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a recursive function to obtain the sum of first 25 natural numbers. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc050.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc050.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc050.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc050.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc050.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -84,4 +48,3 @@ int get_sum(int n) return n + get_sum(n - 1); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc051.md b/docs-new/semester_1/letusc/luc051.md @@ -1,65 +1,29 @@ --- -title: luc051.c -description: "C program source code for luc051.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc051.c' +description: 'Tower of Hanoi: Write a program to print out the sequence in which 4 disks should be moved from peg A to peg C using peg B.' --- -# `luc051.c` +# luc051.c - -!!! abstract "Problem Statement" - Tower of Hanoi: Write a program to print out the sequence in which 4 disks should be moved from peg A to peg C using peg B. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc051.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc051.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Tower of Hanoi: Write a program to print out the sequence in which 4 disks should be moved from peg A to peg C using peg B. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc051.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc051.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc051.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc051.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc051.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -88,4 +52,3 @@ void hanoi(int n, char from_rod, char aux_rod, char to_rod) hanoi(n - 1, aux_rod, from_rod, to_rod); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc052.md b/docs-new/semester_1/letusc/luc052.md @@ -1,65 +1,29 @@ --- -title: luc052.c -description: "C program source code for luc052.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc052.c' +description: 'If a macro is not getting expanded as per your expectation, how will you find out how is it being expanded by the preprocessor?' --- -# `luc052.c` +# luc052.c - -!!! abstract "Problem Statement" - If a macro is not getting expanded as per your expectation, how will you find out how is it being expanded by the preprocessor? - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc052.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc052.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +If a macro is not getting expanded as per your expectation, how will you find out how is it being expanded by the preprocessor? +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc052.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc052.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc052.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc052.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc052.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -73,4 +37,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc053.md b/docs-new/semester_1/letusc/luc053.md @@ -1,65 +1,29 @@ --- -title: luc053.c -description: "C program source code for luc053.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc053.c' +description: 'Write macro definitions for: Mean, Absolute value, Uppercase to Lowercase, Biggest of three.' --- -# `luc053.c` +# luc053.c - -!!! abstract "Problem Statement" - Write macro definitions for: Mean, Absolute value, Uppercase to Lowercase, Biggest of three. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc053.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc053.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write macro definitions for: Mean, Absolute value, Uppercase to Lowercase, Biggest of three. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc053.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc053.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc053.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc053.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc053.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -93,4 +57,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc054.md b/docs-new/semester_1/letusc/luc054.md @@ -1,65 +1,29 @@ --- -title: luc054.c -description: "C program source code for luc054.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc054.c' +description: 'Use ''interest.h'' macros to calculate Simple Interest and Amount.' --- -# `luc054.c` +# luc054.c - -!!! abstract "Problem Statement" - Use 'interest.h' macros to calculate Simple Interest and Amount. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc054.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc054.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Use 'interest.h' macros to calculate Simple Interest and Amount. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc054.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc054.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc054.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc054.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc054.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -82,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc055.md b/docs-new/semester_1/letusc/luc055.md @@ -1,65 +1,29 @@ --- -title: luc055.c -description: "C program source code for luc055.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc055.c' +description: 'Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are positive, how many are negative, how many are even and how many odd.' --- -# `luc055.c` +# luc055.c - -!!! abstract "Problem Statement" - Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are positive, how many are negative, how many are even and how many odd. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc055.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc055.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Twenty-five numbers are entered from the keyboard into an array. Write a program to find out how many of them are positive, how many are negative, how many are even and how many odd. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc055.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc055.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc055.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc055.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc055.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -94,4 +58,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc056.md b/docs-new/semester_1/letusc/luc056.md @@ -1,65 +1,29 @@ --- -title: luc056.c -description: "C program source code for luc056.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc056.c' +description: 'If an array arr contains n elements, then write a program to check if arr[0] = arr[n-1], arr[1] = arr[n-2] and so on.' --- -# `luc056.c` +# luc056.c - -!!! abstract "Problem Statement" - If an array arr contains n elements, then write a program to check if arr[0] = arr[n-1], arr[1] = arr[n-2] and so on. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc056.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc056.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +If an array arr contains n elements, then write a program to check if arr[0] = arr[n-1], arr[1] = arr[n-2] and so on. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc056.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc056.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc056.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc056.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc056.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -95,4 +59,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc057.md b/docs-new/semester_1/letusc/luc057.md @@ -1,65 +1,29 @@ --- -title: luc057.c -description: "C program source code for luc057.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc057.c' +description: 'Write a program using pointers to find the smallest number in an array of 25 integers.' --- -# `luc057.c` +# luc057.c - -!!! abstract "Problem Statement" - Write a program using pointers to find the smallest number in an array of 25 integers. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc057.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc057.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program using pointers to find the smallest number in an array of 25 integers. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc057.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc057.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc057.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc057.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc057.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -92,4 +56,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc058.md b/docs-new/semester_1/letusc/luc058.md @@ -1,65 +1,29 @@ --- -title: luc058.c -description: "C program source code for luc058.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc058.c' +description: 'Implement the Insertion Sort algorithm shown in Figure 13.3 on a set of 25 numbers.' --- -# `luc058.c` +# luc058.c - -!!! abstract "Problem Statement" - Implement the Insertion Sort algorithm shown in Figure 13.3 on a set of 25 numbers. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc058.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc058.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Implement the Insertion Sort algorithm shown in Figure 13.3 on a set of 25 numbers. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc058.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc058.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc058.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc058.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc058.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -107,4 +71,3 @@ void insertion_sort(int *arr, int n) } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc059.md b/docs-new/semester_1/letusc/luc059.md @@ -1,65 +1,29 @@ --- -title: luc059.c -description: "C program source code for luc059.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc059.c' +description: 'Write a program which initializes an integer array of 10 elements in main(), passes it to modify(), multiplies each element by 3, and prints the new array in main().' --- -# `luc059.c` +# luc059.c - -!!! abstract "Problem Statement" - Write a program which initializes an integer array of 10 elements in main(), passes it to modify(), multiplies each element by 3, and prints the new array in main(). - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc059.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc059.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program which initializes an integer array of 10 elements in main(), passes it to modify(), multiplies each element by 3, and prints the new array in main(). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc059.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc059.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc059.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc059.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc059.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -94,4 +58,3 @@ void modify(int *a, int n) } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc060.md b/docs-new/semester_1/letusc/luc060.md @@ -1,65 +1,29 @@ --- -title: luc060.c -description: "C program source code for luc060.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc060.c' +description: 'For the following set of sample data, compute the standard deviation and the mean.\nData: -6, -12, 8, 13, 11, 6, 7, 2, -6, -9, -10, 11, 10, 9, 2' --- -# `luc060.c` +# luc060.c - -!!! abstract "Problem Statement" - For the following set of sample data, compute the standard deviation and the mean.\nData: -6, -12, 8, 13, 11, 6, 7, 2, -6, -9, -10, 11, 10, 9, 2 - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc060.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc060.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +For the following set of sample data, compute the standard deviation and the mean.\nData: -6, -12, 8, 13, 11, 6, 7, 2, -6, -9, -10, 11, 10, 9, 2 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc060.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc060.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc060.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc060.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc060.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -91,4 +55,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc061.md b/docs-new/semester_1/letusc/luc061.md @@ -1,65 +1,29 @@ --- -title: luc061.c -description: "C program source code for luc061.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc061.c' +description: 'The area of a triangle can be computed by the sine law. Given 6 triangular pieces of land (a, b, angle), find their area and determine which is largest.' --- -# `luc061.c` +# luc061.c - -!!! abstract "Problem Statement" - The area of a triangle can be computed by the sine law. Given 6 triangular pieces of land (a, b, angle), find their area and determine which is largest. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc061.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc061.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +The area of a triangle can be computed by the sine law. Given 6 triangular pieces of land (a, b, angle), find their area and determine which is largest. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc061.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc061.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc061.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc061.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc061.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -96,4 +60,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc062.md b/docs-new/semester_1/letusc/luc062.md @@ -1,65 +1,29 @@ --- -title: luc062.c -description: "C program source code for luc062.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc062.c' +description: 'For the following set of n data points (x, y), write a program to compute the correlation coefficient r.' --- -# `luc062.c` +# luc062.c - -!!! abstract "Problem Statement" - For the following set of n data points (x, y), write a program to compute the correlation coefficient r. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc062.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc062.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +For the following set of n data points (x, y), write a program to compute the correlation coefficient r. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc062.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc062.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc062.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc062.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc062.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -95,4 +59,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc063.md b/docs-new/semester_1/letusc/luc063.md @@ -1,65 +1,29 @@ --- -title: luc063.c -description: "C program source code for luc063.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc063.c' +description: 'The X and Y coordinates of 10 different points are entered through the keyboard. Write a program to find the distance of last point from the first point (sum of distances between consecutive points).' --- -# `luc063.c` +# luc063.c - -!!! abstract "Problem Statement" - The X and Y coordinates of 10 different points are entered through the keyboard. Write a program to find the distance of last point from the first point (sum of distances between consecutive points). - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc063.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc063.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +The X and Y coordinates of 10 different points are entered through the keyboard. Write a program to find the distance of last point from the first point (sum of distances between consecutive points). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc063.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc063.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc063.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc063.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc063.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -90,4 +54,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc064.md b/docs-new/semester_1/letusc/luc064.md @@ -1,65 +1,29 @@ --- -title: luc064.c -description: "C program source code for luc064.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc064.c' +description: 'Simulate a Dequeue (Double Ended Queue) using an array. Support: retrieve left, retrieve right, insert left, insert right. Use pointers left and right.' --- -# `luc064.c` +# luc064.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Simulate a Dequeue (Double Ended Queue) using an array. Support: retrieve left, retrieve right, insert left, insert right. Use pointers left and right. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc064.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc064.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc064.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc064.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Simulate a Dequeue (Double Ended Queue) using an array. Support: retrieve left, retrieve right, insert left, insert right. Use pointers left and right. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc064.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc064.c) + +```c [luc064.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -228,4 +192,3 @@ void display(int *dq, int left, int right) printf("\n"); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc065.md b/docs-new/semester_1/letusc/luc065.md @@ -1,65 +1,29 @@ --- -title: luc065.c -description: "C program source code for luc065.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc065.c' +description: 'Write a program to find if a square matrix is symmetric.' --- -# `luc065.c` +# luc065.c - -!!! abstract "Problem Statement" - Write a program to find if a square matrix is symmetric. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc065.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc065.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to find if a square matrix is symmetric. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc065.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc065.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc065.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc065.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc065.c] #include <stdio.h> #include <stdlib.h> @@ -103,4 +67,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc066.md b/docs-new/semester_1/letusc/luc066.md @@ -1,65 +1,29 @@ --- -title: luc066.c -description: "C program source code for luc066.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc066.c' +description: 'Write a program to add two 6 x 6 matrices.' --- -# `luc066.c` +# luc066.c - -!!! abstract "Problem Statement" - Write a program to add two 6 x 6 matrices. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc066.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc066.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to add two 6 x 6 matrices. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc066.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc066.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc066.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc066.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc066.c] #include <stdio.h> #include <stdlib.h> @@ -103,4 +67,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc067.md b/docs-new/semester_1/letusc/luc067.md @@ -1,65 +1,29 @@ --- -title: luc067.c -description: "C program source code for luc067.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc067.c' +description: 'Write a program to multiply any two 3 x 3 matrices.' --- -# `luc067.c` +# luc067.c - -!!! abstract "Problem Statement" - Write a program to multiply any two 3 x 3 matrices. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc067.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc067.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to multiply any two 3 x 3 matrices. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc067.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc067.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc067.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc067.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc067.c] #include <stdio.h> #include <stdlib.h> @@ -108,4 +72,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc068.md b/docs-new/semester_1/letusc/luc068.md @@ -1,65 +1,29 @@ --- -title: luc068.c -description: "C program source code for luc068.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc068.c' +description: 'Given an array p[5], write a function to shift it circularly left by two positions. Call this function for a 4 x 5 matrix and get its rows left shifted.' --- -# `luc068.c` +# luc068.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Given an array p[5], write a function to shift it circularly left by two positions. Call this function for a 4 x 5 matrix and get its rows left shifted. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc068.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc068.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc068.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc068.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Given an array p[5], write a function to shift it circularly left by two positions. Call this function for a 4 x 5 matrix and get its rows left shifted. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc068.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc068.c) + +```c [luc068.c] #include <stdio.h> #include <stdlib.h> @@ -122,4 +86,3 @@ void print_row(int *p, int n) printf("\n"); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc069.md b/docs-new/semester_1/letusc/luc069.md @@ -1,65 +1,29 @@ --- -title: luc069.c -description: "C program source code for luc069.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc069.c' +description: 'If the string "Alice in wonder land" is fed to the following scanf() statement, what will be the contents of arrays str1, str2, str3 and str4?' --- -# `luc069.c` +# luc069.c - -!!! abstract "Problem Statement" - If the string "Alice in wonder land" is fed to the following scanf() statement, what will be the contents of arrays str1, str2, str3 and str4? - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc069.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc069.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +If the string "Alice in wonder land" is fed to the following scanf() statement, what will be the contents of arrays str1, str2, str3 and str4? +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc069.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc069.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc069.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc069.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc069.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -81,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc070.md b/docs-new/semester_1/letusc/luc070.md @@ -1,65 +1,29 @@ --- -title: luc070.c -description: "C program source code for luc070.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc070.c' +description: 'Write a program that receives a 10-digit ISBN number, computes the checksum (d1 + 2d2 + 3d3 + ... + 10d10), and reports whether the ISBN number is correct (sum divisible by 11).' --- -# `luc070.c` +# luc070.c - -!!! abstract "Problem Statement" - Write a program that receives a 10-digit ISBN number, computes the checksum (d1 + 2d2 + 3d3 + ... + 10d10), and reports whether the ISBN number is correct (sum divisible by 11). - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc070.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc070.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that receives a 10-digit ISBN number, computes the checksum (d1 + 2d2 + 3d3 + ... + 10d10), and reports whether the ISBN number is correct (sum divisible by 11). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc070.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc070.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc070.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc070.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc070.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -104,4 +68,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc071.md b/docs-new/semester_1/letusc/luc071.md @@ -1,65 +1,29 @@ --- -title: luc071.c -description: "C program source code for luc071.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc071.c' +description: 'Write a program that receives a 16-digit Credit Card number and checks whether it is valid using the Luhn algorithm variant described.' --- -# `luc071.c` +# luc071.c - -!!! abstract "Problem Statement" - Write a program that receives a 16-digit Credit Card number and checks whether it is valid using the Luhn algorithm variant described. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc071.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc071.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that receives a 16-digit Credit Card number and checks whether it is valid using the Luhn algorithm variant described. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc071.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc071.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc071.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc071.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc071.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -108,4 +72,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc072.md b/docs-new/semester_1/letusc/luc072.md @@ -1,65 +1,29 @@ --- -title: luc072.c -description: "C program source code for luc072.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc072.c' +description: 'How many bytes in memory would be occupied by the following array of pointers to strings? How many bytes would be required to store the same strings in a two-dimensional character array?' --- -# `luc072.c` +# luc072.c - -!!! abstract "Problem Statement" - How many bytes in memory would be occupied by the following array of pointers to strings? How many bytes would be required to store the same strings in a two-dimensional character array? - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc072.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc072.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +How many bytes in memory would be occupied by the following array of pointers to strings? How many bytes would be required to store the same strings in a two-dimensional character array? +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc072.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc072.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc072.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc072.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc072.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -111,4 +75,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc073.md b/docs-new/semester_1/letusc/luc073.md @@ -1,65 +1,29 @@ --- -title: luc073.c -description: "C program source code for luc073.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc073.c' +description: 'Write a program to delete all vowels from a sentence. Assume that the sentence is not more than 80 characters long.' --- -# `luc073.c` +# luc073.c - -!!! abstract "Problem Statement" - Write a program to delete all vowels from a sentence. Assume that the sentence is not more than 80 characters long. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc073.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc073.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to delete all vowels from a sentence. Assume that the sentence is not more than 80 characters long. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc073.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc073.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc073.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc073.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc073.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -94,4 +58,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc074.md b/docs-new/semester_1/letusc/luc074.md @@ -1,65 +1,29 @@ --- -title: luc074.c -description: "C program source code for luc074.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc074.c' +description: 'Write a program that will read a line and delete from it all occurrences of the word ''the''.' --- -# `luc074.c` +# luc074.c - -!!! abstract "Problem Statement" - Write a program that will read a line and delete from it all occurrences of the word 'the'. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc074.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc074.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that will read a line and delete from it all occurrences of the word 'the'. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc074.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc074.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc074.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc074.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc074.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -105,4 +69,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc075.md b/docs-new/semester_1/letusc/luc075.md @@ -1,65 +1,29 @@ --- -title: luc075.c -description: "C program source code for luc075.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc075.c' +description: 'Write a program that stores a set of names of individuals and abbreviates the first and middle name to their first letter.' --- -# `luc075.c` +# luc075.c - -!!! abstract "Problem Statement" - Write a program that stores a set of names of individuals and abbreviates the first and middle name to their first letter. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc075.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc075.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that stores a set of names of individuals and abbreviates the first and middle name to their first letter. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc075.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc075.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc075.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc075.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc075.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -122,4 +86,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc076.md b/docs-new/semester_1/letusc/luc076.md @@ -1,65 +1,29 @@ --- -title: luc076.c -description: "C program source code for luc076.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc076.c' +description: 'Write a program to count the number of occurrences of any two vowels in succession in a line of text.' --- -# `luc076.c` +# luc076.c - -!!! abstract "Problem Statement" - Write a program to count the number of occurrences of any two vowels in succession in a line of text. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc076.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc076.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to count the number of occurrences of any two vowels in succession in a line of text. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc076.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc076.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc076.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc076.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc076.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -94,4 +58,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc077.md b/docs-new/semester_1/letusc/luc077.md @@ -1,65 +1,29 @@ --- -title: luc077.c -description: "C program source code for luc077.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc077.c' +description: 'Write a program that receives an integer (less than or equal to nine digits in length) and prints out the number in words.' --- -# `luc077.c` +# luc077.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program that receives an integer (less than or equal to nine digits in length) and prints out the number in words. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc077.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc077.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc077.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc077.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program that receives an integer (less than or equal to nine digits in length) and prints out the number in words. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc077.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc077.c) + +```c [luc077.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -120,4 +84,3 @@ void convert(long n, char *suffix) } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc078.md b/docs-new/semester_1/letusc/luc078.md @@ -1,65 +1,29 @@ --- -title: luc078.c -description: "C program source code for luc078.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc078.c' +description: 'Create a structure ''student'' (Roll, Name, Dept, Course, Year). Write functions to print names by join year and print data by roll number.' --- -# `luc078.c` +# luc078.c - -!!! abstract "Problem Statement" - Create a structure 'student' (Roll, Name, Dept, Course, Year). Write functions to print names by join year and print data by roll number. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc078.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc078.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Create a structure 'student' (Roll, Name, Dept, Course, Year). Write functions to print names by join year and print data by roll number. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc078.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc078.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc078.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc078.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc078.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -130,4 +94,3 @@ void print_by_roll(struct student *s, int n, int roll) printf("Student with Roll %d not found.\n", roll); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc079.md b/docs-new/semester_1/letusc/luc079.md @@ -1,65 +1,29 @@ --- -title: luc079.c -description: "C program source code for luc079.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc079.c' +description: 'Create a structure for bank customers (Acc no, Name, Balance). Write functions to print low balance customers and handle deposits/withdrawals.' --- -# `luc079.c` +# luc079.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Create a structure for bank customers (Acc no, Name, Balance). Write functions to print low balance customers and handle deposits/withdrawals. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc079.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc079.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc079.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc079.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Create a structure for bank customers (Acc no, Name, Balance). Write functions to print low balance customers and handle deposits/withdrawals. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc079.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc079.c) + +```c [luc079.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -148,4 +112,3 @@ void transaction(struct customer *c, int n, int acc, float amount, int code) if (!found) printf("Account number not found.\n"); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc080.md b/docs-new/semester_1/letusc/luc080.md @@ -1,65 +1,29 @@ --- -title: luc080.c -description: "C program source code for luc080.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc080.c' +description: 'Automobile engine parts (Serial AA0-FF9, Year, Material, Qty). Retrieve parts between serial numbers BB1 and CC6.' --- -# `luc080.c` +# luc080.c - -!!! abstract "Problem Statement" - Automobile engine parts (Serial AA0-FF9, Year, Material, Qty). Retrieve parts between serial numbers BB1 and CC6. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc080.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc080.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Automobile engine parts (Serial AA0-FF9, Year, Material, Qty). Retrieve parts between serial numbers BB1 and CC6. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc080.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc080.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc080.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc080.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc080.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -109,4 +73,3 @@ void retrieve_parts(struct part *p, int n) } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc081.md b/docs-new/semester_1/letusc/luc081.md @@ -1,65 +1,29 @@ --- -title: luc081.c -description: "C program source code for luc081.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc081.c' +description: 'Create structure for Cricketers (Name, Age, Tests, Avg Runs). Sort 20 records by average runs using qsort().' --- -# `luc081.c` +# luc081.c - -!!! abstract "Problem Statement" - Create structure for Cricketers (Name, Age, Tests, Avg Runs). Sort 20 records by average runs using qsort(). - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc081.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc081.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Create structure for Cricketers (Name, Age, Tests, Avg Runs). Sort 20 records by average runs using qsort(). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc081.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc081.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc081.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc081.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc081.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -108,4 +72,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc082.md b/docs-new/semester_1/letusc/luc082.md @@ -1,65 +1,29 @@ --- -title: luc082.c -description: "C program source code for luc082.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc082.c' +description: 'Structure ''employee'' (Code, Name, Date of Joining). Display names of employees with tenure >= 3 years.' --- -# `luc082.c` +# luc082.c - -!!! abstract "Problem Statement" - Structure 'employee' (Code, Name, Date of Joining). Display names of employees with tenure >= 3 years. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc082.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc082.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Structure 'employee' (Code, Name, Date of Joining). Display names of employees with tenure &gt;= 3 years. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc082.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc082.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc082.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc082.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc082.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -114,4 +78,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc083.md b/docs-new/semester_1/letusc/luc083.md @@ -1,65 +1,29 @@ --- -title: luc083.c -description: "C program source code for luc083.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc083.c' +description: 'Library menu-driven program (Add, Display, List by Author, List by Title, Count, List sorted).' --- -# `luc083.c` +# luc083.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Library menu-driven program (Add, Display, List by Author, List by Title, Count, List sorted). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc083.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc083.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc083.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc083.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Library menu-driven program (Add, Display, List by Author, List by Title, Count, List sorted). +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc083.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc083.c) + +```c [luc083.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -183,4 +147,3 @@ void sort_by_acc(struct library *lib, int count) } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc084.md b/docs-new/semester_1/letusc/luc084.md @@ -1,65 +1,29 @@ --- -title: luc084.c -description: "C program source code for luc084.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc084.c' +description: 'Define a function that compares two given dates. Return 0 if equal, otherwise return 1.' --- -# `luc084.c` +# luc084.c - -!!! abstract "Problem Statement" - Define a function that compares two given dates. Return 0 if equal, otherwise return 1. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc084.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc084.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Define a function that compares two given dates. Return 0 if equal, otherwise return 1. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc084.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc084.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc084.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc084.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc084.c] #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -99,4 +63,3 @@ int compare_dates(struct date d1, struct date d2) return 1; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc085.md b/docs-new/semester_1/letusc/luc085.md @@ -1,65 +1,29 @@ --- -title: luc085.c -description: "C program source code for luc085.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc085.c' +description: 'Suppose a file contains student records (Name, Age). Write a program to read these records and display them in sorted order by name.' --- -# `luc085.c` +# luc085.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Suppose a file contains student records (Name, Age). Write a program to read these records and display them in sorted order by name. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc085.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc085.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc085.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc085.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Suppose a file contains student records (Name, Age). Write a program to read these records and display them in sorted order by name. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc085.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc085.c) + +```c [luc085.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -127,4 +91,3 @@ void create_dummy_data() } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc086.md b/docs-new/semester_1/letusc/luc086.md @@ -1,65 +1,29 @@ --- -title: luc086.c -description: "C program source code for luc086.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc086.c' +description: 'Write a program to copy contents of one file to another. While doing so replace all lowercase characters to their equivalent uppercase characters.' --- -# `luc086.c` +# luc086.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to copy contents of one file to another. While doing so replace all lowercase characters to their equivalent uppercase characters. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc086.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc086.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc086.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc086.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to copy contents of one file to another. While doing so replace all lowercase characters to their equivalent uppercase characters. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc086.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc086.c) + +```c [luc086.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -114,4 +78,3 @@ void create_source_file() } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc087.md b/docs-new/semester_1/letusc/luc087.md @@ -1,65 +1,29 @@ --- -title: luc087.c -description: "C program source code for luc087.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc087.c' +description: 'Write a program that merges lines alternately from two files and writes the results to a new file. Handle remaining lines if file sizes differ.' --- -# `luc087.c` +# luc087.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program that merges lines alternately from two files and writes the results to a new file. Handle remaining lines if file sizes differ. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc087.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc087.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc087.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc087.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program that merges lines alternately from two files and writes the results to a new file. Handle remaining lines if file sizes differ. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc087.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc087.c) + +```c [luc087.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -133,4 +97,3 @@ void create_sample_files() fclose(f2); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc088.md b/docs-new/semester_1/letusc/luc088.md @@ -1,65 +1,29 @@ --- -title: luc088.c -description: "C program source code for luc088.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc088.c' +description: 'Write a program to encrypt/decrypt a file using: (1) Offset cipher (2) Substitution cipher.' --- -# `luc088.c` +# luc088.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to encrypt/decrypt a file using: (1) Offset cipher (2) Substitution cipher. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc088.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc088.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc088.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc088.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to encrypt/decrypt a file using: (1) Offset cipher (2) Substitution cipher. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc088.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc088.c) + +```c [luc088.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -120,4 +84,3 @@ void create_plain_file() } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc089.md b/docs-new/semester_1/letusc/luc089.md @@ -1,65 +1,29 @@ --- -title: luc089.c -description: "C program source code for luc089.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc089.c' +description: 'Update ''CUSTOMER.DAT'' balance using ''TRANSACTIONS.DAT'' (Deposit/Withdrawal). Ensure balance doesn''t fall below Rs. 100 on withdrawal.' --- -# `luc089.c` +# luc089.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Update 'CUSTOMER.DAT' balance using 'TRANSACTIONS.DAT' (Deposit/Withdrawal). Ensure balance doesn't fall below Rs. 100 on withdrawal. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc089.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc089.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc089.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc089.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Update 'CUSTOMER.DAT' balance using 'TRANSACTIONS.DAT' (Deposit/Withdrawal). Ensure balance doesn't fall below Rs. 100 on withdrawal. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc089.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc089.c) + +```c [luc089.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -163,4 +127,3 @@ void create_files() fclose(f1); fclose(f2); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc090.md b/docs-new/semester_1/letusc/luc090.md @@ -1,65 +1,29 @@ --- -title: luc090.c -description: "C program source code for luc090.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc090.c' +description: 'Read employee records (code, name, date, salary), sort them by Date of Joining, and write to a target file.' --- -# `luc090.c` +# luc090.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Read employee records (code, name, date, salary), sort them by Date of Joining, and write to a target file. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc090.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc090.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc090.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc090.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Read employee records (code, name, date, salary), sort them by Date of Joining, and write to a target file. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc090.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc090.c) + +```c [luc090.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -134,4 +98,3 @@ void create_emp_file() fclose(f); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc091.md b/docs-new/semester_1/letusc/luc091.md @@ -1,65 +1,29 @@ --- -title: luc091.c -description: "C program source code for luc091.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc091.c' +description: 'Read ''blood donors'' file (Name, Address, Age, Blood Type). Print donors with Age < 25 and Blood Type 2.' --- -# `luc091.c` +# luc091.c - -!!! abstract "Problem Statement" - Read 'blood donors' file (Name, Address, Age, Blood Type). Print donors with Age < 25 and Blood Type 2. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc091.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc091.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Read 'blood donors' file (Name, Address, Age, Blood Type). Print donors with Age &lt; 25 and Blood Type 2. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc091.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc091.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc091.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc091.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc091.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -114,4 +78,3 @@ void create_donor_file() fclose(f); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc092.md b/docs-new/semester_1/letusc/luc092.md @@ -1,65 +1,29 @@ --- -title: luc092.c -description: "C program source code for luc092.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc092.c' +description: 'Write a program to store names in a file. Display the n-th name in the list, where n is read from the keyboard.' --- -# `luc092.c` +# luc092.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to store names in a file. Display the n-th name in the list, where n is read from the keyboard. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc092.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc092.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc092.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc092.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to store names in a file. Display the n-th name in the list, where n is read from the keyboard. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc092.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc092.c) + +```c [luc092.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -107,4 +71,3 @@ void create_name_file() fclose(f); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc093.md b/docs-new/semester_1/letusc/luc093.md @@ -1,65 +1,29 @@ --- -title: luc093.c -description: "C program source code for luc093.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc093.c' +description: 'Update Master file (Roll, Name) using Transaction file (Roll, Code Add/Delete). Both files are sorted by Roll.' --- -# `luc093.c` +# luc093.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Update Master file (Roll, Name) using Transaction file (Roll, Code Add/Delete). Both files are sorted by Roll. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc093.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc093.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc093.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc093.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Update Master file (Roll, Name) using Transaction file (Roll, Code Add/Delete). Both files are sorted by Roll. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc093.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc093.c) + +```c [luc093.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -176,4 +140,3 @@ void create_files() fclose(f2); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc094.md b/docs-new/semester_1/letusc/luc094.md @@ -1,65 +1,29 @@ --- -title: luc094.c -description: "C program source code for luc094.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc094.c' +description: 'Read a text file, delete the words ''a'', ''the'', ''an'' and replace each with a blank space. Write to new file.' --- -# `luc094.c` +# luc094.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Read a text file, delete the words 'a', 'the', 'an' and replace each with a blank space. Write to new file. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc094.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc094.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc094.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc094.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Read a text file, delete the words 'a', 'the', 'an' and replace each with a blank space. Write to new file. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc094.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc094.c) + +```c [luc094.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -111,4 +75,3 @@ void create_article_file() fclose(f); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc095.md b/docs-new/semester_1/letusc/luc095.md @@ -1,65 +1,29 @@ --- -title: luc095.c -description: "C program source code for luc095.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc095.c' +description: 'Write a program that can read a file and display its contents. The file name should be supplied as a command-line argument.' --- -# `luc095.c` +# luc095.c - -!!! abstract "Problem Statement" - Write a program that can read a file and display its contents. The file name should be supplied as a command-line argument. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc095.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc095.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that can read a file and display its contents. The file name should be supplied as a command-line argument. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc095.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc095.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc095.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc095.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc095.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -94,4 +58,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc096.md b/docs-new/semester_1/letusc/luc096.md @@ -1,65 +1,29 @@ --- -title: luc096.c -description: "C program source code for luc096.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc096.c' +description: 'Write a program that can copy the contents of one file to another. The source and target filenames should be supplied as command-line arguments.' --- -# `luc096.c` +# luc096.c - -!!! abstract "Problem Statement" - Write a program that can copy the contents of one file to another. The source and target filenames should be supplied as command-line arguments. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc096.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc096.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that can copy the contents of one file to another. The source and target filenames should be supplied as command-line arguments. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc096.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc096.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc096.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc096.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc096.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -105,4 +69,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc097.md b/docs-new/semester_1/letusc/luc097.md @@ -1,65 +1,29 @@ --- -title: luc097.c -description: "C program source code for luc097.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc097.c' +description: 'Write a program using command-line arguments to search for a word in a file and replace it with the specified word.\nUsage: change <old word> <new word> <filename>' --- -# `luc097.c` +# luc097.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program using command-line arguments to search for a word in a file and replace it with the specified word.\nUsage: change <old word> <new word> <filename> +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc097.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc097.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc097.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc097.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program using command-line arguments to search for a word in a file and replace it with the specified word.\nUsage: change &lt;old word&gt; &lt;new word&gt; &lt;filename&gt; +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc097.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc097.c) + +```c [luc097.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -147,4 +111,3 @@ void replace_all(char *str, const char *old_w, const char *new_w, FILE *ft) fputs(str, ft); } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc098.md b/docs-new/semester_1/letusc/luc098.md @@ -1,65 +1,29 @@ --- -title: luc098.c -description: "C program source code for luc098.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc098.c' +description: 'Write a calculator utility using command line arguments.\nUsage: calc <switch> <n> <m>\nwhere switch is arithmetic operator or comparison operator.' --- -# `luc098.c` +# luc098.c - -!!! abstract "Problem Statement" - Write a calculator utility using command line arguments.\nUsage: calc <switch> <n> <m>\nwhere switch is arithmetic operator or comparison operator. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc098.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc098.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a calculator utility using command line arguments.\nUsage: calc &lt;switch&gt; &lt;n&gt; &lt;m&gt;\nwhere switch is arithmetic operator or comparison operator. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc098.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc098.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc098.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc098.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc098.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -125,4 +89,3 @@ int main(int argc, char *argv[]) return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc099.md b/docs-new/semester_1/letusc/luc099.md @@ -1,65 +1,29 @@ --- -title: luc099.c -description: "C program source code for luc099.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc099.c' +description: 'Read an integer ''game'' representing sports won by a college. Determine if it won the ''Champion of Champions'' trophy (>5 games) and list games won.' --- -# `luc099.c` +# luc099.c - -!!! abstract "Problem Statement" - Read an integer 'game' representing sports won by a college. Determine if it won the 'Champion of Champions' trophy (>5 games) and list games won. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc099.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc099.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Read an integer 'game' representing sports won by a college. Determine if it won the 'Champion of Champions' trophy (&gt;5 games) and list games won. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc099.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc099.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc099.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc099.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc099.c] #include <stdio.h> #include <stdlib.h> @@ -95,4 +59,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc100.md b/docs-new/semester_1/letusc/luc100.md @@ -1,65 +1,29 @@ --- -title: luc100.c -description: "C program source code for luc100.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc100.c' +description: 'Determine if an animal is Carnivore/Herbivore and its type (Canine, Feline, Cetacean, Marsupial) based on bits in an integer.' --- -# `luc100.c` +# luc100.c - -!!! abstract "Problem Statement" - Determine if an animal is Carnivore/Herbivore and its type (Canine, Feline, Cetacean, Marsupial) based on bits in an integer. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc100.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc100.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Determine if an animal is Carnivore/Herbivore and its type (Canine, Feline, Cetacean, Marsupial) based on bits in an integer. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc100.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc100.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc100.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc100.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc100.c] #include <stdio.h> #include <stdlib.h> @@ -93,4 +57,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc101.md b/docs-new/semester_1/letusc/luc101.md @@ -1,65 +1,29 @@ --- -title: luc101.c -description: "C program source code for luc101.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc101.c' +description: 'Decode student information (Year, Stream, Room No) packed into an integer array.' --- -# `luc101.c` +# luc101.c - -!!! abstract "Problem Statement" - Decode student information (Year, Stream, Room No) packed into an integer array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc101.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc101.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Decode student information (Year, Stream, Room No) packed into an integer array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc101.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc101.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc101.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc101.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc101.c] #include <stdio.h> #include <stdlib.h> @@ -101,4 +65,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc102.md b/docs-new/semester_1/letusc/luc102.md @@ -1,65 +1,29 @@ --- -title: luc102.c -description: "C program source code for luc102.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc102.c' +description: 'What will be the output of the provided program segment involving bitwise operators?' --- -# `luc102.c` +# luc102.c - -!!! abstract "Problem Statement" - What will be the output of the provided program segment involving bitwise operators? - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc102.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc102.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +What will be the output of the provided program segment involving bitwise operators? +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc102.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc102.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc102.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc102.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc102.c] #include <stdio.h> #include <stdlib.h> @@ -80,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc103.md b/docs-new/semester_1/letusc/luc103.md @@ -1,65 +1,29 @@ --- -title: luc103.c -description: "C program source code for luc103.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc103.c' +description: 'What is the hexadecimal equivalent of the following binary numbers?' --- -# `luc103.c` +# luc103.c - -!!! abstract "Problem Statement" - What is the hexadecimal equivalent of the following binary numbers? - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc103.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc103.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +What is the hexadecimal equivalent of the following binary numbers? +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc103.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc103.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc103.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc103.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc103.c] #include <stdio.h> #include <stdlib.h> @@ -81,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc104.md b/docs-new/semester_1/letusc/luc104.md @@ -1,65 +1,29 @@ --- -title: luc104.c -description: "C program source code for luc104.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc104.c' +description: 'Rewrite expressions using bitwise compound assignment operators.' --- -# `luc104.c` +# luc104.c - -!!! abstract "Problem Statement" - Rewrite expressions using bitwise compound assignment operators. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc104.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc104.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Rewrite expressions using bitwise compound assignment operators. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc104.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc104.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc104.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc104.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc104.c] #include <stdio.h> #include <stdlib.h> @@ -88,4 +52,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc105.md b/docs-new/semester_1/letusc/luc105.md @@ -1,65 +1,29 @@ --- -title: luc105.c -description: "C program source code for luc105.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc105.c' +description: 'Write a function checkbits(x, p, n) which returns true if all ''n'' bits starting from position ''p'' are turned on.' --- -# `luc105.c` +# luc105.c - -!!! abstract "Problem Statement" - Write a function checkbits(x, p, n) which returns true if all 'n' bits starting from position 'p' are turned on. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc105.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc105.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a function checkbits(x, p, n) which returns true if all 'n' bits starting from position 'p' are turned on. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc105.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc105.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc105.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc105.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc105.c] #include <stdio.h> #include <stdlib.h> @@ -97,4 +61,3 @@ int checkbits(unsigned int x, int p, int n) return (x & mask) == mask; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc106.md b/docs-new/semester_1/letusc/luc106.md @@ -1,65 +1,29 @@ --- -title: luc106.c -description: "C program source code for luc106.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc106.c' +description: 'Write a program to scan an 8-bit number and check whether its 3rd, 6th and 7th bit is on.' --- -# `luc106.c` +# luc106.c - -!!! abstract "Problem Statement" - Write a program to scan an 8-bit number and check whether its 3rd, 6th and 7th bit is on. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc106.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc106.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to scan an 8-bit number and check whether its 3rd, 6th and 7th bit is on. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc106.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc106.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc106.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc106.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc106.c] #include <stdio.h> #include <stdlib.h> @@ -83,4 +47,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc107.md b/docs-new/semester_1/letusc/luc107.md @@ -1,65 +1,29 @@ --- -title: luc107.c -description: "C program source code for luc107.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc107.c' +description: 'Receive an unsigned 16-bit integer and exchange the contents of its 2 bytes using bitwise operators.' --- -# `luc107.c` +# luc107.c - -!!! abstract "Problem Statement" - Receive an unsigned 16-bit integer and exchange the contents of its 2 bytes using bitwise operators. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc107.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc107.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Receive an unsigned 16-bit integer and exchange the contents of its 2 bytes using bitwise operators. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc107.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc107.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc107.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc107.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc107.c] #include <stdio.h> #include <stdlib.h> @@ -82,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc108.md b/docs-new/semester_1/letusc/luc108.md @@ -1,65 +1,29 @@ --- -title: luc108.c -description: "C program source code for luc108.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc108.c' +description: 'Receive an 8-bit number and exchange its higher 4 bits with lower 4 bits.' --- -# `luc108.c` +# luc108.c - -!!! abstract "Problem Statement" - Receive an 8-bit number and exchange its higher 4 bits with lower 4 bits. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc108.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc108.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Receive an 8-bit number and exchange its higher 4 bits with lower 4 bits. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc108.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc108.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc108.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc108.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc108.c] #include <stdio.h> #include <stdlib.h> @@ -82,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc109.md b/docs-new/semester_1/letusc/luc109.md @@ -1,65 +1,29 @@ --- -title: luc109.c -description: "C program source code for luc109.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc109.c' +description: 'Receive an 8-bit number and set its odd bits to 1.' --- -# `luc109.c` +# luc109.c - -!!! abstract "Problem Statement" - Receive an 8-bit number and set its odd bits to 1. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc109.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc109.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Receive an 8-bit number and set its odd bits to 1. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc109.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc109.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc109.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc109.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc109.c] #include <stdio.h> #include <stdlib.h> @@ -82,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc110.md b/docs-new/semester_1/letusc/luc110.md @@ -1,65 +1,29 @@ --- -title: luc110.c -description: "C program source code for luc110.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc110.c' +description: 'Receive an 8-bit number. Check if 3rd and 5th bits are ON. If yes, put them OFF.' --- -# `luc110.c` +# luc110.c - -!!! abstract "Problem Statement" - Receive an 8-bit number. Check if 3rd and 5th bits are ON. If yes, put them OFF. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc110.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc110.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Receive an 8-bit number. Check if 3rd and 5th bits are ON. If yes, put them OFF. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc110.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc110.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc110.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc110.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc110.c] #include <stdio.h> #include <stdlib.h> @@ -88,4 +52,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc111.md b/docs-new/semester_1/letusc/luc111.md @@ -1,65 +1,29 @@ --- -title: luc111.c -description: "C program source code for luc111.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc111.c' +description: 'Receive an 8-bit number. Check if 3rd and 5th bits are OFF. If yes, put them ON.' --- -# `luc111.c` +# luc111.c - -!!! abstract "Problem Statement" - Receive an 8-bit number. Check if 3rd and 5th bits are OFF. If yes, put them ON. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc111.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc111.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Receive an 8-bit number. Check if 3rd and 5th bits are OFF. If yes, put them ON. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc111.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc111.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc111.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc111.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc111.c] #include <stdio.h> #include <stdlib.h> @@ -87,4 +51,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc112.md b/docs-new/semester_1/letusc/luc112.md @@ -1,65 +1,29 @@ --- -title: luc112.c -description: "C program source code for luc112.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc112.c' +description: 'Rewrite the showbits() function using the _BV macro.' --- -# `luc112.c` +# luc112.c - -!!! abstract "Problem Statement" - Rewrite the showbits() function using the _BV macro. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc112.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc112.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Rewrite the showbits() function using the _BV macro. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc112.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc112.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc112.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc112.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc112.c] #include <stdio.h> #include <stdlib.h> @@ -97,4 +61,3 @@ void showbits(unsigned char n) } } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc113.md b/docs-new/semester_1/letusc/luc113.md @@ -1,65 +1,29 @@ --- -title: luc113.c -description: "C program source code for luc113.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc113.c' +description: 'Store date in a structure using bit fields (day: 5 bits, month: 4 bits, year: 12 bits). Read joining dates of 10 employees and display them sorted by year.' --- -# `luc113.c` +# luc113.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Store date in a structure using bit fields (day: 5 bits, month: 4 bits, year: 12 bits). Read joining dates of 10 employees and display them sorted by year. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc113.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc113.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc113.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc113.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Store date in a structure using bit fields (day: 5 bits, month: 4 bits, year: 12 bits). Read joining dates of 10 employees and display them sorted by year. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc113.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc113.c) + +```c [luc113.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -132,4 +96,3 @@ int compare_dates(const void *a, const void *b) return e1->doj.day - e2->doj.day; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc114.md b/docs-new/semester_1/letusc/luc114.md @@ -1,65 +1,29 @@ --- -title: luc114.c -description: "C program source code for luc114.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc114.c' +description: 'Store insurance policy holder info (gender, minor/major, policy name, duration) using bit-fields.' --- -# `luc114.c` +# luc114.c - -!!! abstract "Problem Statement" - Store insurance policy holder info (gender, minor/major, policy name, duration) using bit-fields. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc114.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc114.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Store insurance policy holder info (gender, minor/major, policy name, duration) using bit-fields. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc114.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc114.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc114.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc114.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc114.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -109,4 +73,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc115.md b/docs-new/semester_1/letusc/luc115.md @@ -1,65 +1,29 @@ --- -title: luc115.c -description: "C program source code for luc115.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc115.c' +description: 'Obtain MD5 checksum of the following strings and check whether they are same: "Six slippery snails slid slowly seaward." "Six silppery snails slid slowly seaward."' --- -# `luc115.c` +# luc115.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Obtain MD5 checksum of the following strings and check whether they are same: "Six slippery snails slid slowly seaward." "Six silppery snails slid slowly seaward." +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc115.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc115.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc115.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc115.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Obtain MD5 checksum of the following strings and check whether they are same: "Six slippery snails slid slowly seaward." "Six silppery snails slid slowly seaward." +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc115.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc115.c) + +```c [luc115.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -257,4 +221,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc116.md b/docs-new/semester_1/letusc/luc116.md @@ -1,65 +1,29 @@ --- -title: luc116.c -description: "C program source code for luc116.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc116.c' +description: 'Compile any C program into a .EXE or a .out file. Obtain SHA256 checksum of the file.' --- -# `luc116.c` +# luc116.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Compile any C program into a .EXE or a .out file. Obtain SHA256 checksum of the file. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc116.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc116.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc116.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc116.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Compile any C program into a .EXE or a .out file. Obtain SHA256 checksum of the file. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc116.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc116.c) + +```c [luc116.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -216,4 +180,3 @@ int main(int argc, char *argv[]) { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc117.md b/docs-new/semester_1/letusc/luc117.md @@ -1,65 +1,29 @@ --- -title: luc117.c -description: "C program source code for luc117.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc117.c' +description: 'Write a program to convert a given text into an audio file using OpenAI Audio API (TTS).' --- -# `luc117.c` +# luc117.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to convert a given text into an audio file using OpenAI Audio API (TTS). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc117.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc117.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc117.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc117.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to convert a given text into an audio file using OpenAI Audio API (TTS). +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc117.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc117.c) + +```c [luc117.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -135,4 +99,3 @@ int main(void) { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc118.md b/docs-new/semester_1/letusc/luc118.md @@ -1,65 +1,29 @@ --- -title: luc118.c -description: "C program source code for luc118.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc118.c' +description: 'Write a program to generate 4 images of birds flying in the sky with a computer''s mouse in their beak using OpenAI Image API.' --- -# `luc118.c` +# luc118.c - -!!! abstract "Problem Statement" - Write a program to generate 4 images of birds flying in the sky with a computer's mouse in their beak using OpenAI Image API. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc118.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc118.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to generate 4 images of birds flying in the sky with a computer's mouse in their beak using OpenAI Image API. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc118.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc118.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc118.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc118.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [luc118.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -114,4 +78,3 @@ int main(void) { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/luc119.md b/docs-new/semester_1/letusc/luc119.md @@ -1,65 +1,29 @@ --- -title: luc119.c -description: "C program source code for luc119.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> luc119.c' +description: 'Write a program to analyse a given sentence to detect the mood of the sentence using OpenAI Chat Completion API.' --- -# `luc119.c` +# luc119.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 08 Feb 2026 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to analyse a given sentence to detect the mood of the sentence using OpenAI Chat Completion API. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 08 Feb 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc119.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc119.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc119.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc119.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to analyse a given sentence to detect the mood of the sentence using OpenAI Chat Completion API. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc119.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc119.c) + +```c [luc119.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -120,4 +84,3 @@ int main(void) { return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem001.md b/docs-new/semester_1/letusc/lucproblem001.md @@ -1,64 +1,29 @@ --- -title: lucproblem001.c -description: "C program source code for lucproblem001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem001.c' +description: 'Consider a currency system in which there are notes of six denominations, namely, Rs. 1, Rs. 2, rs. 5, Rs. 10, Rs. 50, Rs. 100. If a sum of Rs. N is entered through the keyboard, Write a program to compute the smallest number of notes that will combine to give Rs. N.' --- -# `lucproblem001.c` +# lucproblem001.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Consider a currency system in which there are notes of six denominations, namely, Rs. 1, Rs. 2, rs. 5, Rs. 10, Rs. 50, Rs. 100. If a sum of Rs. N is entered through the keyboard, Write a program to compute the smallest number of notes that will combine to give Rs. N. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Consider a currency system in which there are notes of six denominations, namely, Rs. 1, Rs. 2, rs. 5, Rs. 10, Rs. 50, Rs. 100. If a sum of Rs. N is entered through the keyboard, Write a program to compute the smallest number of notes that will combine to give Rs. N. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem001.c] #include <stdio.h> int main() { @@ -86,4 +51,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem002.md b/docs-new/semester_1/letusc/lucproblem002.md @@ -1,64 +1,29 @@ --- -title: lucproblem002.c -description: "C program source code for lucproblem002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem002.c' +description: 'A year is entered through the keyboard, write a program to determine whether the year is leap or not. Use the logical operators && and || .' --- -# `lucproblem002.c` +# lucproblem002.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - A year is entered through the keyboard, write a program to determine whether the year is leap or not. Use the logical operators && and || . +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +A year is entered through the keyboard, write a program to determine whether the year is leap or not. Use the logical operators &amp;&amp; and || . +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem002.c] #include <stdio.h> int main() { @@ -72,4 +37,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem003.md b/docs-new/semester_1/letusc/lucproblem003.md @@ -1,64 +1,29 @@ --- -title: lucproblem003.c -description: "C program source code for lucproblem003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem003.c' +description: 'If a character is entered through the keyboard, Write a program to determine whether the character is a capital letter, a small case letter, a digit or a speacial symbol. The following table shows the range of ASCII values for various characters : Characters ASCII Values A - Z 65 - 90 a - z 97 - 122 0 - 9 48 - 57 special symbols 0 - 47, 58 - 64, 91 - 96, 123 - 127' --- -# `lucproblem003.c` +# lucproblem003.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - If a character is entered through the keyboard, Write a program to determine whether the character is a capital letter, a small case letter, a digit or a speacial symbol. The following table shows the range of ASCII values for various characters : Characters ASCII Values A - Z 65 - 90 a - z 97 - 122 0 - 9 48 - 57 special symbols 0 - 47, 58 - 64, 91 - 96, 123 - 127 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +If a character is entered through the keyboard, Write a program to determine whether the character is a capital letter, a small case letter, a digit or a speacial symbol. The following table shows the range of ASCII values for various characters : Characters ASCII Values A - Z 65 - 90 a - z 97 - 122 0 - 9 48 - 57 special symbols 0 - 47, 58 - 64, 91 - 96, 123 - 127 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem003.c] #include <stdio.h> int main() { @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem004.md b/docs-new/semester_1/letusc/lucproblem004.md @@ -1,64 +1,29 @@ --- -title: lucproblem004.c -description: "C program source code for lucproblem004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem004.c' +description: 'If the lengths of three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is valid or not. The triangle is valid if the sum of two sides is greater that the largest of the three sides.' --- -# `lucproblem004.c` +# lucproblem004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - If the lengths of three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is valid or not. The triangle is valid if the sum of two sides is greater that the largest of the three sides. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +If the lengths of three sides of a triangle are entered through the keyboard, write a program to check whether the triangle is valid or not. The triangle is valid if the sum of two sides is greater that the largest of the three sides. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem004.c] #include <stdio.h> int main() { @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem005.md b/docs-new/semester_1/letusc/lucproblem005.md @@ -1,64 +1,29 @@ --- -title: lucproblem005.c -description: "C program source code for lucproblem005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem005.c' +description: 'Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 120.00 per hour for every hour worked above 40 hours. Assume that employees do not work for fractional part of an hour.' --- -# `lucproblem005.c` +# lucproblem005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 120.00 per hour for every hour worked above 40 hours. Assume that employees do not work for fractional part of an hour. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to calculate overtime pay of 10 employees. Overtime is paid at the rate of Rs. 120.00 per hour for every hour worked above 40 hours. Assume that employees do not work for fractional part of an hour. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem005.c] #include <stdio.h> #include <conio.h> int main() @@ -91,4 +56,3 @@ int main() } } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem006.md b/docs-new/semester_1/letusc/lucproblem006.md @@ -1,64 +1,29 @@ --- -title: lucproblem006.c -description: "C program source code for lucproblem006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem006.c' +description: 'Write a program to find the factorial value of any number entered through the keyboard.' --- -# `lucproblem006.c` +# lucproblem006.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find the factorial value of any number entered through the keyboard. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find the factorial value of any number entered through the keyboard. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem006.c] #include <stdio.h> int main() { @@ -92,4 +57,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem007.md b/docs-new/semester_1/letusc/lucproblem007.md @@ -1,64 +1,29 @@ --- -title: lucproblem007.c -description: "C program source code for lucproblem007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem007.c' +description: 'Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another' --- -# `lucproblem007.c` +# lucproblem007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem007.c] #include <stdio.h> int main() { @@ -93,4 +58,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem008.md b/docs-new/semester_1/letusc/lucproblem008.md @@ -1,64 +1,29 @@ --- -title: lucproblem008.c -description: "C program source code for lucproblem008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem008.c' +description: 'Write a problem to print all the prime numbers from 1 to 300.' --- -# `lucproblem008.c` +# lucproblem008.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a problem to print all the prime numbers from 1 to 300. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a problem to print all the prime numbers from 1 to 300. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem008.c] #include <stdio.h> #include <math.h> #include <stdbool.h> @@ -91,4 +56,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem009.md b/docs-new/semester_1/letusc/lucproblem009.md @@ -1,64 +1,29 @@ --- -title: lucproblem009.c -description: "C program source code for lucproblem009.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem009.c' +description: 'Write a program to add first seven terms of the following series using a for loop. 1 / 1! + 2 / 2! + 3 / 3! + ...' --- -# `lucproblem009.c` +# lucproblem009.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to add first seven terms of the following series using a for loop. 1 / 1! + 2 / 2! + 3 / 3! + ... +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to add first seven terms of the following series using a for loop. 1 / 1! + 2 / 2! + 3 / 3! + ... +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem009.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem009.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem009.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem009.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem009.c] #include <stdio.h> #define N 7 // update N here @@ -74,4 +39,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem010-complex.md b/docs-new/semester_1/letusc/lucproblem010-complex.md @@ -1,65 +1,29 @@ --- -title: lucproblem010-complex.c -description: "C program source code for lucproblem010-complex.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem010-complex.c' +description: 'Write a program to generate all combinations (permutations) of 1, 2 and 3 from 1-digit numbers up to 4-digit numbers using a main loop to control the number of digits (1 to 3333).' --- -# `lucproblem010-complex.c` +# lucproblem010-complex.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to generate all combinations (permutations) of 1, 2 and 3 from 1-digit numbers up to 4-digit numbers using a main loop to control the number of digits (1 to 3333). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010-complex.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010-complex.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010-complex.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010-complex.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a program to generate all combinations (permutations) of 1, 2 and 3 from 1-digit numbers up to 4-digit numbers using a main loop to control the number of digits (1 to 3333). +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010-complex.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010-complex.c) + +```c [lucproblem010-complex.c] #include <stdio.h> // --- RECURSIVE FUNCTION TO ACHIEVE DYNAMIC NESTING --- @@ -110,4 +74,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem010.md b/docs-new/semester_1/letusc/lucproblem010.md @@ -1,65 +1,29 @@ --- -title: lucproblem010.c -description: "C program source code for lucproblem010.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem010.c' +description: 'Write a program to generate all combination of 1, 2 and 3 using for loop.' --- -# `lucproblem010.c` +# lucproblem010.c - -!!! abstract "Problem Statement" - Write a program to generate all combination of 1, 2 and 3 using for loop. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to generate all combination of 1, 2 and 3 using for loop. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem010.c] #include <stdio.h> int main() @@ -111,4 +75,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem011.md b/docs-new/semester_1/letusc/lucproblem011.md @@ -1,65 +1,29 @@ --- -title: lucproblem011.c -description: "C program source code for lucproblem011.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem011.c' +description: 'Write a menu driven program which has following options : 1. Factorial of a number 2. Prime or not 3. Odd or even 4. Exit Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the ''Exit'' option the program should continue work.' --- -# `lucproblem011.c` +# lucproblem011.c - -!!! abstract "Problem Statement" - Write a menu driven program which has following options : 1. Factorial of a number 2. Prime or not 3. Odd or even 4. Exit Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the 'Exit' option the program should continue work. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem011.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem011.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a menu driven program which has following options : 1. Factorial of a number 2. Prime or not 3. Odd or even 4. Exit Once a menu item is selected the appropriate action should be taken and once this action is finished, the menu should reappear. Unless the user selects the 'Exit' option the program should continue work. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem011.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem011.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem011.c] #include <stdio.h> #include <math.h> #include <stdlib.h> @@ -243,4 +207,3 @@ int main() } } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem012.md b/docs-new/semester_1/letusc/lucproblem012.md @@ -1,64 +1,29 @@ --- -title: lucproblem012.c -description: "C program source code for lucproblem012.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem012.c' +description: 'Write a Function power(a, b), to calculate the value of a raised to b' --- -# `lucproblem012.c` +# lucproblem012.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a Function power(a, b), to calculate the value of a raised to b +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a Function power(a, b), to calculate the value of a raised to b +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem012.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem012.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem012.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem012.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem012.c] #include <stdio.h> double power(double, int); @@ -86,4 +51,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem013.md b/docs-new/semester_1/letusc/lucproblem013.md @@ -1,64 +1,29 @@ --- -title: lucproblem013.c -description: "C program source code for lucproblem013.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem013.c' +description: 'Define a function to convert any given year into its Roman equivalent. Use these roman equivalent for decimal numbers : 1 - I, 5 - V, 10 - X, 50 - L, 100 - C, 500 - D, 1000 - M' --- -# `lucproblem013.c` +# lucproblem013.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Define a function to convert any given year into its Roman equivalent. Use these roman equivalent for decimal numbers : 1 - I, 5 - V, 10 - X, 50 - L, 100 - C, 500 - D, 1000 - M +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Define a function to convert any given year into its Roman equivalent. Use these roman equivalent for decimal numbers : 1 - I, 5 - V, 10 - X, 50 - L, 100 - C, 500 - D, 1000 - M +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem013.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem013.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem013.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem013.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem013.c] #include <stdio.h> void romanise(int); @@ -92,4 +57,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem014-short.md b/docs-new/semester_1/letusc/lucproblem014-short.md @@ -1,65 +1,29 @@ --- -title: lucproblem014-short.c -description: "C program source code for lucproblem014-short.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem014-short.c' +description: 'Write a function that receives integers and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the result in main()' --- -# `lucproblem014-short.c` +# lucproblem014-short.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a function that receives integers and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the result in main() +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014-short.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014-short.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014-short.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014-short.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a function that receives integers and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the result in main() +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014-short.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014-short.c) + +```c [lucproblem014-short.c] #include <stdio.h> #include <math.h> @@ -116,4 +80,3 @@ void stats(double *sum, double *average, double *standardDeviation) *standardDeviation = tempStandardDeviation; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem014.md b/docs-new/semester_1/letusc/lucproblem014.md @@ -1,65 +1,29 @@ --- -title: lucproblem014.c -description: "C program source code for lucproblem014.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem014.c' +description: 'Write a function that receives integers and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the result in main()' --- -# `lucproblem014.c` +# lucproblem014.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a function that receives integers and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the result in main() +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a function that receives integers and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the result in main() +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014.c) + +```c [lucproblem014.c] #include <stdio.h> #include <math.h> @@ -158,4 +122,3 @@ void stats(double *sum, double *average, double *standardDeviation) *standardDeviation = tempStandardDeviation; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem015.md b/docs-new/semester_1/letusc/lucproblem015.md @@ -1,65 +1,29 @@ --- -title: lucproblem015.c -description: "C program source code for lucproblem015.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem015.c' +description: 'Write a program that defines a function that calculates power of one number reaised to another and factorial value of a number in one cell.' --- -# `lucproblem015.c` +# lucproblem015.c - -!!! abstract "Problem Statement" - Write a program that defines a function that calculates power of one number reaised to another and factorial value of a number in one cell. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem015.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem015.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program that defines a function that calculates power of one number reaised to another and factorial value of a number in one cell. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem015.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem015.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem015.c] #include <stdio.h> void bothPowerFactorial(double, int, int, double *, long long *); @@ -101,4 +65,3 @@ void bothPowerFactorial(double a, int b, int n, double *resultPower, long long * *resultFactorial = tempResultFactorial; } ``` -</div> diff --git a/docs-new/semester_1/letusc/lucproblem016.md b/docs-new/semester_1/letusc/lucproblem016.md @@ -1,64 +1,29 @@ --- -title: lucproblem016.c -description: "C program source code for lucproblem016.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> lucproblem016.c' +description: 'Figure 9.4 shows three memory locations and values stored in them. Write a program to declare variables that implement the relationship shown. How will you print the values and addresses shown in the figure? On which machine the program should be executed to get such addresses? Figure 9.4: value: 3.14, memory_address: 7fff9489c79c value: 7fff9489c7a0, memory_address: 7fff4fd134b8 value: 7fff9489c79c, memory_address: 7fff9489c7a0' --- -# `lucproblem016.c` +# lucproblem016.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Figure 9.4 shows three memory locations and values stored in them. Write a program to declare variables that implement the relationship shown. How will you print the values and addresses shown in the figure? On which machine the program should be executed to get such addresses? Figure 9.4: value: 3.14, memory_address: 7fff9489c79c value: 7fff9489c7a0, memory_address: 7fff4fd134b8 value: 7fff9489c79c, memory_address: 7fff9489c7a0 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Figure 9.4 shows three memory locations and values stored in them. Write a program to declare variables that implement the relationship shown. How will you print the values and addresses shown in the figure? On which machine the program should be executed to get such addresses? Figure 9.4: value: 3.14, memory_address: 7fff9489c79c value: 7fff9489c7a0, memory_address: 7fff4fd134b8 value: 7fff9489c79c, memory_address: 7fff9489c7a0 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem016.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem016.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem016.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem016.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [lucproblem016.c] #include <stdio.h> int main() @@ -88,4 +53,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/model_questions.md b/docs-new/semester_1/model_questions.md @@ -7,11 +7,11 @@ icon: lucide/file-badge --- -!!! info "How to use this file" - Questions are grouped **unit-wise** matching the WBSU NEP syllabus. - If you can answer each descriptive question fully, all short/MCQ variants on that topic are automatically covered. - Attempt at least **2 questions from each unit** before your exam. - +::: info How to use this file +Questions are grouped **unit-wise** matching the WBSU NEP syllabus. +If you can answer each descriptive question fully, all short/MCQ variants on that topic are automatically covered. +Attempt at least **2 questions from each unit** before your exam. +::: --- ## Unit 1 — Overview of C @@ -311,11 +311,12 @@ Explain each section of your program. --- -!!! tip "Exam Strategy" - - **5-mark questions**: Answer Q1–Q80 type (pick any sub-part) - - **10-mark questions**: Answer Q91–Q100 type (write full essay with programs) - - **Lab Viva**: Know programs from Q41, Q43, Q44, Q51, Q63, Q69 thoroughly - - Always write programs with proper `#include`, `main()`, and sample output - -!!! note "Key Programs to Memorise" - Fibonacci (iterative + recursive) · Factorial · GCD · Prime check · Palindrome · Matrix multiplication · Bubble sort · Dynamic array · File copy · Linked list node (struct + malloc)- \ No newline at end of file +::: tip Exam Strategy +- **5-mark questions**: Answer Q1–Q80 type (pick any sub-part) +- **10-mark questions**: Answer Q91–Q100 type (write full essay with programs) +- **Lab Viva**: Know programs from Q41, Q43, Q44, Q51, Q63, Q69 thoroughly +- Always write programs with proper `#include`, `main()`, and sample output +::: +::: info Key Programs to Memorise +Fibonacci (iterative + recursive) · Factorial · GCD · Prime check · Palindrome · Matrix multiplication · Bubble sort · Dynamic array · File copy · Linked list node (struct + malloc) +:::+ \ No newline at end of file diff --git a/docs-new/semester_1/practice-c/external_1.md b/docs-new/semester_1/practice-c/external_1.md @@ -1,54 +1,15 @@ --- -title: external_1.c -description: "C program source code for external_1.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_1.c' +description: 'C program — external_1.c' --- -# `external_1.c` +# external_1.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_1.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_1.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_1.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_1.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [external_1.c] #include<stdio.h> int sum(int); @@ -81,4 +42,3 @@ int product(int num) { return pro; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/external_2.md b/docs-new/semester_1/practice-c/external_2.md @@ -1,54 +1,15 @@ --- -title: external_2.c -description: "C program source code for external_2.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_2.c' +description: 'C program — external_2.c' --- -# `external_2.c` +# external_2.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_2.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_2.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_2.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_2.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_2.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [external_2.c] #include<stdio.h> int reverse(int); @@ -71,4 +32,3 @@ int reverse(int num) { return rev; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/external_3.md b/docs-new/semester_1/practice-c/external_3.md @@ -1,54 +1,15 @@ --- -title: external_3.c -description: "C program source code for external_3.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_3.c' +description: 'C program — external_3.c' --- -# `external_3.c` +# external_3.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_3.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_3.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_3.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_3.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_3.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_3.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [external_3.c] #include<stdio.h> int sum(int); @@ -73,4 +34,3 @@ int sum(int n) { return res; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/external_4.md b/docs-new/semester_1/practice-c/external_4.md @@ -1,54 +1,15 @@ --- -title: external_4.c -description: "C program source code for external_4.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_4.c' +description: 'C program — external_4.c' --- -# `external_4.c` +# external_4.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_4.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_4.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_4.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_4.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_4.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_4.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [external_4.c] #include<stdio.h> int isPrime(int); @@ -76,4 +37,3 @@ int isPrime(int n) { return 1; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/external_5.md b/docs-new/semester_1/practice-c/external_5.md @@ -1,54 +1,15 @@ --- -title: external_5.c -description: "C program source code for external_5.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_5.c' +description: 'C program — external_5.c' --- -# `external_5.c` +# external_5.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_5.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_5.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_5.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_5.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_5.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_5.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [external_5.c] #include<stdio.h> #include<string.h> #include<ctype.h> @@ -76,4 +37,3 @@ int isPalindrome(char str[]) { return 1; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/external_6.md b/docs-new/semester_1/practice-c/external_6.md @@ -0,0 +1,39 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_6.c' +description: 'C program — external_6.c' +--- + +# external_6.c + +## Source Code + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_6.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_6.c) + +```c [external_6.c] +#include<stdio.h> + +void factor(int); + +int main() { + int n; + printf("Enter a number: "); + scanf("%d", &n); + factor(n); + return 0; +} + +void factor(int n) { + int i; + printf("\nThe factors of %d = ", n); + if(n == 0) { + printf("Infinite."); + return; + } + if (n < 0) n = -n; + for(i = 1; i <= n; i++) { + if(n % i == 0) { + printf("%d %d ", i, -i); + } + } +} +``` diff --git a/docs-new/semester_1/practice-c/external_7.md b/docs-new/semester_1/practice-c/external_7.md @@ -0,0 +1,31 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_7.c' +description: 'C program — external_7.c' +--- + +# external_7.c + +## Source Code + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_7.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_7.c) + +```c [external_7.c] +#include<stdio.h> + +#define SWAP(a, b) \ + do { \ + __typeof__(a) temp = a; \ + a = b; \ + b = temp; \ + } while (0) \ + +int main() { + int a, b; + printf("Enter two number: "); + scanf("%d %d", &a, &b); + printf("\nA = \'%d\', B = \'%d\'", a, b); + SWAP(a, b); + printf("\nA = \'%d\', B = \'%d\'", a, b); + return 0; +} +``` diff --git a/docs-new/semester_1/practice-c/external_8.md b/docs-new/semester_1/practice-c/external_8.md @@ -0,0 +1,32 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> external_8.c' +description: 'C program — external_8.c' +--- + +# external_8.c + +## Source Code + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_8.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_8.c) + +```c [external_8.c] +#include <stdio.h> + +int main() { + int rows, i, j, k; + + printf("Enter the number of lines: "); + scanf("%d", &rows); + + for (i = 1; i <= rows; i++) { + for(j = 1; j <= rows - i; j++) { + printf(" "); + } + for (k = 1; k <= i; k++) { + printf("* "); + } + printf("\n"); + } + return 0; +} +``` diff --git a/docs-new/semester_1/practice-c/index.md b/docs-new/semester_1/practice-c/index.md @@ -11,41 +11,44 @@ Files and sub-folders in **Practice C**. | 3 | `external_3.c` | [View Code](external_3.md) | | 4 | `external_4.c` | [View Code](external_4.md) | | 5 | `external_5.c` | [View Code](external_5.md) | -| 6 | `pc-ip-01.c` | [View Code](pc-ip-01.md) | -| 7 | `pc-ip-02.c` | [View Code](pc-ip-02.md) | -| 8 | `pc-ip-03.c` | [View Code](pc-ip-03.md) | -| 9 | `pc-ip-04.c` | [View Code](pc-ip-04.md) | -| 10 | `pc-ip-05.c` | [View Code](pc-ip-05.md) | -| 11 | `pc-ip-06.c` | [View Code](pc-ip-06.md) | -| 12 | `pc-ip-07.c` | [View Code](pc-ip-07.md) | -| 13 | `pc-ip-08.c` | [View Code](pc-ip-08.md) | -| 14 | `pc-ip-09.c` | [View Code](pc-ip-09.md) | -| 15 | `pc-ip-10.c` | [View Code](pc-ip-10.md) | -| 16 | `pc-ip-11.c` | [View Code](pc-ip-11.md) | -| 17 | `pc-ip-12.c` | [View Code](pc-ip-12.md) | -| 18 | `pc-ip-13.c` | [View Code](pc-ip-13.md) | -| 19 | `pc-ip-14.c` | [View Code](pc-ip-14.md) | -| 20 | `pc-ip-15.c` | [View Code](pc-ip-15.md) | -| 21 | `pc-ip-16.c` | [View Code](pc-ip-16.md) | -| 22 | `pc-ip-17.c` | [View Code](pc-ip-17.md) | -| 23 | `pc-ip-18.c` | [View Code](pc-ip-18.md) | -| 24 | `pc-ip-19.c` | [View Code](pc-ip-19.md) | -| 25 | `pc-ip-20.c` | [View Code](pc-ip-20.md) | -| 26 | `pc001.c` | [View Code](pc001.md) | -| 27 | `pc002.c` | [View Code](pc002.md) | -| 28 | `pc003.c` | [View Code](pc003.md) | -| 29 | `pc004.c` | [View Code](pc004.md) | -| 30 | `pc005.c` | [View Code](pc005.md) | -| 31 | `pc006.c` | [View Code](pc006.md) | -| 32 | `pc007.c` | [View Code](pc007.md) | -| 33 | `pc008.c` | [View Code](pc008.md) | -| 34 | `pc009.c` | [View Code](pc009.md) | -| 35 | `pc010.c` | [View Code](pc010.md) | -| 36 | `pc011.c` | [View Code](pc011.md) | -| 37 | `pc012.c` | [View Code](pc012.md) | -| 38 | `pc013.c` | [View Code](pc013.md) | -| 39 | `pc014.c` | [View Code](pc014.md) | -| 40 | `pc015.c` | [View Code](pc015.md) | -| 41 | `pc016.c` | [View Code](pc016.md) | -| 42 | `pc017.c` | [View Code](pc017.md) | +| 6 | `external_6.c` | [View Code](external_6.md) | +| 7 | `external_7.c` | [View Code](external_7.md) | +| 8 | `external_8.c` | [View Code](external_8.md) | +| 9 | `pc-ip-01.c` | [View Code](pc-ip-01.md) | +| 10 | `pc-ip-02.c` | [View Code](pc-ip-02.md) | +| 11 | `pc-ip-03.c` | [View Code](pc-ip-03.md) | +| 12 | `pc-ip-04.c` | [View Code](pc-ip-04.md) | +| 13 | `pc-ip-05.c` | [View Code](pc-ip-05.md) | +| 14 | `pc-ip-06.c` | [View Code](pc-ip-06.md) | +| 15 | `pc-ip-07.c` | [View Code](pc-ip-07.md) | +| 16 | `pc-ip-08.c` | [View Code](pc-ip-08.md) | +| 17 | `pc-ip-09.c` | [View Code](pc-ip-09.md) | +| 18 | `pc-ip-10.c` | [View Code](pc-ip-10.md) | +| 19 | `pc-ip-11.c` | [View Code](pc-ip-11.md) | +| 20 | `pc-ip-12.c` | [View Code](pc-ip-12.md) | +| 21 | `pc-ip-13.c` | [View Code](pc-ip-13.md) | +| 22 | `pc-ip-14.c` | [View Code](pc-ip-14.md) | +| 23 | `pc-ip-15.c` | [View Code](pc-ip-15.md) | +| 24 | `pc-ip-16.c` | [View Code](pc-ip-16.md) | +| 25 | `pc-ip-17.c` | [View Code](pc-ip-17.md) | +| 26 | `pc-ip-18.c` | [View Code](pc-ip-18.md) | +| 27 | `pc-ip-19.c` | [View Code](pc-ip-19.md) | +| 28 | `pc-ip-20.c` | [View Code](pc-ip-20.md) | +| 29 | `pc001.c` | [View Code](pc001.md) | +| 30 | `pc002.c` | [View Code](pc002.md) | +| 31 | `pc003.c` | [View Code](pc003.md) | +| 32 | `pc004.c` | [View Code](pc004.md) | +| 33 | `pc005.c` | [View Code](pc005.md) | +| 34 | `pc006.c` | [View Code](pc006.md) | +| 35 | `pc007.c` | [View Code](pc007.md) | +| 36 | `pc008.c` | [View Code](pc008.md) | +| 37 | `pc009.c` | [View Code](pc009.md) | +| 38 | `pc010.c` | [View Code](pc010.md) | +| 39 | `pc011.c` | [View Code](pc011.md) | +| 40 | `pc012.c` | [View Code](pc012.md) | +| 41 | `pc013.c` | [View Code](pc013.md) | +| 42 | `pc014.c` | [View Code](pc014.md) | +| 43 | `pc015.c` | [View Code](pc015.md) | +| 44 | `pc016.c` | [View Code](pc016.md) | +| 45 | `pc017.c` | [View Code](pc017.md) | diff --git a/docs-new/semester_1/practice-c/pc-ip-01.md b/docs-new/semester_1/practice-c/pc-ip-01.md @@ -1,65 +1,29 @@ --- -title: pc-ip-01.c -description: "C program source code for pc-ip-01.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-01.c' +description: 'Question 1: Write a program to compute the sum and product of digits of an integer using user-defined functions.' --- -# `pc-ip-01.c` +# pc-ip-01.c - -!!! abstract "Problem Statement" - Question 1: Write a program to compute the sum and product of digits of an integer using user-defined functions. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-01.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-01.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 1: Write a program to compute the sum and product of digits of an integer using user-defined functions. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-01.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-01.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-01.c] #include <stdio.h> int sum(int); @@ -101,4 +65,3 @@ int product(int num) return result; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-02.md b/docs-new/semester_1/practice-c/pc-ip-02.md @@ -1,64 +1,29 @@ --- -title: pc-ip-02.c -description: "C program source code for pc-ip-02.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-02.c' +description: 'Question 2: Write a program to reverse a non-negative integer using a function.' --- -# `pc-ip-02.c` +# pc-ip-02.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 2: Write a program to reverse a non-negative integer using a function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 2: Write a program to reverse a non-negative integer using a function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-02.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-02.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-02.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-02.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-02.c] #include <stdio.h> int reverse(int); @@ -88,4 +53,3 @@ int reverse(int num) return result; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-03.md b/docs-new/semester_1/practice-c/pc-ip-03.md @@ -1,64 +1,29 @@ --- -title: pc-ip-03.c -description: "C program source code for pc-ip-03.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-03.c' +description: 'Question 3: Write a program to compute the sum of the first n terms of the series using a function: S=1-2+3-4+5-6+...' --- -# `pc-ip-03.c` +# pc-ip-03.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 3: Write a program to compute the sum of the first n terms of the series using a function: S=1-2+3-4+5-6+... +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 3: Write a program to compute the sum of the first n terms of the series using a function: S=1-2+3-4+5-6+... +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-03.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-03.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-03.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-03.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-03.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-03.c] #include <stdio.h> int series(int); @@ -89,4 +54,3 @@ int series(int n) return result; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-04.md b/docs-new/semester_1/practice-c/pc-ip-04.md @@ -1,65 +1,29 @@ --- -title: pc-ip-04.c -description: "C program source code for pc-ip-04.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-04.c' +description: 'Question 4: Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100.' --- -# `pc-ip-04.c` +# pc-ip-04.c - -!!! abstract "Problem Statement" - Question 4: Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-04.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-04.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 4: Write a function to check whether a number is prime or not. Use the same function to generate all prime numbers less than 100. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-04.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-04.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-04.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-04.c] #include <stdio.h> #include <math.h> @@ -107,4 +71,3 @@ int isPrime(int n) return 1; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-05.md b/docs-new/semester_1/practice-c/pc-ip-05.md @@ -1,65 +1,29 @@ --- -title: pc-ip-05.c -description: "C program source code for pc-ip-05.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-05.c' +description: 'Question 5: Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome.' --- -# `pc-ip-05.c` +# pc-ip-05.c - -!!! abstract "Problem Statement" - Question 5: Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-05.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-05.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 5: Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-05.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-05.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-05.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-05.c] #include <stdio.h> int isPalindrome(char[]); @@ -105,4 +69,3 @@ int isPalindrome(char str[]) return 1; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-06.md b/docs-new/semester_1/practice-c/pc-ip-06.md @@ -1,64 +1,29 @@ --- -title: pc-ip-06.c -description: "C program source code for pc-ip-06.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-06.c' +description: 'Question 6: Write a program using a function to compute and display all factors of a given number.' --- -# `pc-ip-06.c` +# pc-ip-06.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 6: Write a program using a function to compute and display all factors of a given number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 6: Write a program using a function to compute and display all factors of a given number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-06.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-06.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-06.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-06.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-06.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-06.c] #include <stdio.h> void printFactors(int); @@ -85,4 +50,3 @@ void printFactors(int n) } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-07.md b/docs-new/semester_1/practice-c/pc-ip-07.md @@ -1,64 +1,29 @@ --- -title: pc-ip-07.c -description: "C program source code for pc-ip-07.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-07.c' +description: 'Question 7: Write a program to swap two numbers using pointers using user-defined function.' --- -# `pc-ip-07.c` +# pc-ip-07.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 7: Write a program to swap two numbers using pointers using user-defined function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 7: Write a program to swap two numbers using pointers using user-defined function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-07.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-07.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-07.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-07.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-07.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-07.c] #include <stdio.h> void swap(int *, int *); @@ -85,4 +50,3 @@ void swap(int *a, int *b) *b = temp; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-08.md b/docs-new/semester_1/practice-c/pc-ip-08.md @@ -1,64 +1,29 @@ --- -title: pc-ip-08.c -description: "C program source code for pc-ip-08.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-08.c' +description: 'Question 8: Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main().' --- -# `pc-ip-08.c` +# pc-ip-08.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 8: Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main(). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 8: Write a program that takes the radius of a circle as input, passes it to a function that computes area and circumference, and displays results in main(). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-08.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-08.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-08.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-08.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-08.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-08.c] #include <stdio.h> #include <math.h> @@ -81,4 +46,3 @@ void area_circumference(double r, double *area, double *cir) *cir = 2 * M_PI * r; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-09.md b/docs-new/semester_1/practice-c/pc-ip-09.md @@ -1,65 +1,29 @@ --- -title: pc-ip-09.c -description: "C program source code for pc-ip-09.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-09.c' +description: 'Question 9: Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()).' --- -# `pc-ip-09.c` +# pc-ip-09.c - -!!! abstract "Problem Statement" - Question 9: Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-09.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-09.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 9: Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-09.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-09.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-09.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-09.c] #include <stdio.h> #include <stdlib.h> @@ -123,4 +87,3 @@ double sum(double arr[], int n) return sum; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-10.md b/docs-new/semester_1/practice-c/pc-ip-10.md @@ -1,65 +1,29 @@ --- -title: pc-ip-10.c -description: "C program source code for pc-ip-10.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-10.c' +description: 'Question 10: Write a function that reverses each elements of an array in place, using only a single pointer argument, and return void.' --- -# `pc-ip-10.c` +# pc-ip-10.c - -!!! abstract "Problem Statement" - Question 10: Write a function that reverses each elements of an array in place, using only a single pointer argument, and return void. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-10.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-10.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 10: Write a function that reverses each elements of an array in place, using only a single pointer argument, and return void. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-10.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-10.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-10.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-10.c] #include <stdio.h> #include <stdlib.h> @@ -128,4 +92,3 @@ void reverse(int *n) *n = rev; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-11.md b/docs-new/semester_1/practice-c/pc-ip-11.md @@ -1,65 +1,29 @@ --- -title: pc-ip-11.c -description: "C program source code for pc-ip-11.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-11.c' +description: 'Question 11: Write a program to merge two sorted integer arrays to form a single sorted array.' --- -# `pc-ip-11.c` +# pc-ip-11.c - -!!! abstract "Problem Statement" - Question 11: Write a program to merge two sorted integer arrays to form a single sorted array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-11.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-11.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 11: Write a program to merge two sorted integer arrays to form a single sorted array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-11.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-11.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-11.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-11.c] #include <stdio.h> #include <stdlib.h> @@ -157,4 +121,3 @@ void merge(int arra[], int a, int arrb[], int b) free(arr); } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-12.md b/docs-new/semester_1/practice-c/pc-ip-12.md @@ -1,65 +1,29 @@ --- -title: pc-ip-12.c -description: "C program source code for pc-ip-12.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-12.c' +description: 'Question 12: Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order.' --- -# `pc-ip-12.c` +# pc-ip-12.c - -!!! abstract "Problem Statement" - Question 12: Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-12.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-12.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 12: Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-12.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-12.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-12.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-12.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-12.c] #include <stdio.h> void input(int *); @@ -136,4 +100,3 @@ void bubble_sort(int arr[], int n) } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-13.md b/docs-new/semester_1/practice-c/pc-ip-13.md @@ -1,65 +1,29 @@ --- -title: pc-ip-13.c -description: "C program source code for pc-ip-13.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-13.c' +description: 'Question 13: Write a program to display the Fibonacci series using recursive function and iterative function.' --- -# `pc-ip-13.c` +# pc-ip-13.c - -!!! abstract "Problem Statement" - Question 13: Write a program to display the Fibonacci series using recursive function and iterative function. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-13.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-13.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 13: Write a program to display the Fibonacci series using recursive function and iterative function. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-13.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-13.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-13.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-13.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-13.c] #include <stdio.h> long long int fib_rec(int); @@ -119,4 +83,3 @@ long long int fib_rec(int n) } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-14.md b/docs-new/semester_1/practice-c/pc-ip-14.md @@ -1,64 +1,29 @@ --- -title: pc-ip-14.c -description: "C program source code for pc-ip-14.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-14.c' +description: 'Question 14: Write a program to calculate the factorial of a number using recursive and iterative function.' --- -# `pc-ip-14.c` +# pc-ip-14.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 14: Write a program to calculate the factorial of a number using recursive and iterative function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 14: Write a program to calculate the factorial of a number using recursive and iterative function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-14.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-14.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-14.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-14.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-14.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-14.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-14.c] #include <stdio.h> long long int fact_rec(int); @@ -96,4 +61,3 @@ long long int fact_rec(int n) } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-15.md b/docs-new/semester_1/practice-c/pc-ip-15.md @@ -1,65 +1,29 @@ --- -title: pc-ip-15.c -description: "C program source code for pc-ip-15.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-15.c' +description: 'Question 15: Write a program to calculate the GCD of two numbers using recursive and iterative function.' --- -# `pc-ip-15.c` +# pc-ip-15.c - -!!! abstract "Problem Statement" - Question 15: Write a program to calculate the GCD of two numbers using recursive and iterative function. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-15.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-15.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 15: Write a program to calculate the GCD of two numbers using recursive and iterative function. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-15.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-15.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-15.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-15.c] #include <stdio.h> int gcd_rec(int, int); @@ -99,4 +63,3 @@ int gcd_rec(int a, int b) } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-16.md b/docs-new/semester_1/practice-c/pc-ip-16.md @@ -1,65 +1,29 @@ --- -title: pc-ip-16.c -description: "C program source code for pc-ip-16.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-16.c' +description: 'Question 16: Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);.' --- -# `pc-ip-16.c` +# pc-ip-16.c - -!!! abstract "Problem Statement" - Question 16: Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-16.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-16.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 16: Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-16.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-16.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-16.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-16.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-16.c] #include <stdio.h> #include <math.h> @@ -100,4 +64,3 @@ int isArmstrong(int num) return result == num; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-17.md b/docs-new/semester_1/practice-c/pc-ip-17.md @@ -1,64 +1,29 @@ --- -title: pc-ip-17.c -description: "C program source code for pc-ip-17.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-17.c' +description: 'Question 17: Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);.' --- -# `pc-ip-17.c` +# pc-ip-17.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 05 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Question 17: Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 05 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Question 17: Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-17.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-17.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-17.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-17.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-17.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-17.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-17.c] #include <stdio.h> int isPerfect(int); @@ -92,4 +57,3 @@ int isPerfect(int n) return sum == n; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-18.md b/docs-new/semester_1/practice-c/pc-ip-18.md @@ -1,65 +1,29 @@ --- -title: pc-ip-18.c -description: "C program source code for pc-ip-18.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-18.c' +description: 'Question 18: Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);.' --- -# `pc-ip-18.c` +# pc-ip-18.c - -!!! abstract "Problem Statement" - Question 18: Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-18.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-18.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 18: Write a C program that includes a user-defined function named findLargest with the signature int findLargest(int arr[], int size);. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-18.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-18.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-18.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-18.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-18.c] #include <stdio.h> #include <stdlib.h> @@ -129,4 +93,3 @@ int findLargest(int arr[], int size) return largest; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-19.md b/docs-new/semester_1/practice-c/pc-ip-19.md @@ -1,65 +1,29 @@ --- -title: pc-ip-19.c -description: "C program source code for pc-ip-19.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-19.c' +description: 'Question 19: Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);.' --- -# `pc-ip-19.c` +# pc-ip-19.c - -!!! abstract "Problem Statement" - Question 19: Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-19.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-19.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 19: Write a C program that includes a user-defined function named binarySearch with the signature int binarySearch(int arr[], int size, int target);. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-19.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-19.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-19.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-19.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-19.c] #include <stdio.h> #include <stdlib.h> @@ -146,4 +110,3 @@ int binarySearch(int arr[], int size, int target) return -1; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc-ip-20.md b/docs-new/semester_1/practice-c/pc-ip-20.md @@ -1,65 +1,29 @@ --- -title: pc-ip-20.c -description: "C program source code for pc-ip-20.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc-ip-20.c' +description: 'Question 20: Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);.' --- -# `pc-ip-20.c` +# pc-ip-20.c - -!!! abstract "Problem Statement" - Question 20: Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 05 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-20.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-20.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Question 20: Write a C program that defines an array of integers, and includes a user-defined function named reverseArray with the signature void reverseArray(int arr[], int size);. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-20.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-20.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-20.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-20.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc-ip-20.c] #include<stdio.h> #include<stdlib.h> @@ -119,4 +83,3 @@ void reverseArray(int arr[], int size) { } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc001.md b/docs-new/semester_1/practice-c/pc001.md @@ -1,64 +1,29 @@ --- -title: pc001.c -description: "C program source code for pc001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc001.c' +description: 'Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 for n = 5' --- -# `pc001.c` +# pc001.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 for n = 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 for n = 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc001.c] #include <stdio.h> int main() { @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc002.md b/docs-new/semester_1/practice-c/pc002.md @@ -1,64 +1,29 @@ --- -title: pc002.c -description: "C program source code for pc002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc002.c' +description: 'Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 for n = 5' --- -# `pc002.c` +# pc002.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 for n = 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 for n = 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc002.c] #include <stdio.h> int main() { @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc003.md b/docs-new/semester_1/practice-c/pc003.md @@ -1,64 +1,29 @@ --- -title: pc003.c -description: "C program source code for pc003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc003.c' +description: 'Pattern : 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 for n = 5' --- -# `pc003.c` +# pc003.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern : 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 for n = 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern : 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 for n = 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc003.c] #include <stdio.h> int main() { @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc004.md b/docs-new/semester_1/practice-c/pc004.md @@ -1,64 +1,29 @@ --- -title: pc004.c -description: "C program source code for pc004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc004.c' +description: 'Pattern : 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 for n = 5' --- -# `pc004.c` +# pc004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern : 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 for n = 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern : 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 for n = 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc004.c] #include <stdio.h> int main() { @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc005.md b/docs-new/semester_1/practice-c/pc005.md @@ -1,64 +1,29 @@ --- -title: pc005.c -description: "C program source code for pc005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc005.c' +description: 'Pattern : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 for n = 5' --- -# `pc005.c` +# pc005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 for n = 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 for n = 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc005.c] #include <stdio.h> int main() { @@ -81,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc006.md b/docs-new/semester_1/practice-c/pc006.md @@ -1,65 +1,29 @@ --- -title: pc006.c -description: "C program source code for pc006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc006.c' +description: 'Prime number check' --- -# `pc006.c` +# pc006.c - -!!! abstract "Problem Statement" - Prime number check - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Prime number check +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc006.c] #include <stdio.h> #include <math.h> @@ -100,4 +64,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc007.md b/docs-new/semester_1/practice-c/pc007.md @@ -1,64 +1,29 @@ --- -title: pc007.c -description: "C program source code for pc007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc007.c' +description: 'Armstrong number check only for three digit' --- -# `pc007.c` +# pc007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Armstrong number check only for three digit +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Armstrong number check only for three digit +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc007.c] #include <stdio.h> int main() @@ -88,4 +53,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc008.md b/docs-new/semester_1/practice-c/pc008.md @@ -1,64 +1,29 @@ --- -title: pc008.c -description: "C program source code for pc008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc008.c' +description: 'Factorial upto N' --- -# `pc008.c` +# pc008.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Factorial upto N +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Factorial upto N +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc008.c] #include <stdio.h> int main() @@ -87,4 +52,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc009.md b/docs-new/semester_1/practice-c/pc009.md @@ -1,64 +1,29 @@ --- -title: pc009.c -description: "C program source code for pc009.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc009.c' +description: 'Sum of digit' --- -# `pc009.c` +# pc009.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Sum of digit +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Sum of digit +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc009.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc009.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc009.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc009.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc009.c] #include <stdio.h> int main() { @@ -79,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc010.md b/docs-new/semester_1/practice-c/pc010.md @@ -1,64 +1,29 @@ --- -title: pc010.c -description: "C program source code for pc010.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc010.c' +description: 'Reverse a number' --- -# `pc010.c` +# pc010.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Reverse a number +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Reverse a number +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc010.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc010.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc010.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc010.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc010.c] #include <stdio.h> int main() { @@ -79,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc011.md b/docs-new/semester_1/practice-c/pc011.md @@ -1,65 +1,29 @@ --- -title: pc011.c -description: "C program source code for pc011.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc011.c' +description: 'Write a C program that takes two positive integers, L (Lower Bound) and U (Upper Bound), as input from the user. The program must find and print the count of all numbers between L and U (inclusive) that are also a Palindrome Number.' --- -# `pc011.c` +# pc011.c - -!!! abstract "Problem Statement" - Write a C program that takes two positive integers, L (Lower Bound) and U (Upper Bound), as input from the user. The program must find and print the count of all numbers between L and U (inclusive) that are also a Palindrome Number. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc011.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc011.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program that takes two positive integers, L (Lower Bound) and U (Upper Bound), as input from the user. The program must find and print the count of all numbers between L and U (inclusive) that are also a Palindrome Number. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc011.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc011.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc011.c] #include <stdio.h> #define true 1 #define false 0 @@ -105,4 +69,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc012.md b/docs-new/semester_1/practice-c/pc012.md @@ -1,65 +1,29 @@ --- -title: pc012.c -description: "C program source code for pc012.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc012.c' +description: 'Write a C function that receives a string (character array) and uses pointers to count and return the total number of vowels and consonants in that string.' --- -# `pc012.c` +# pc012.c - -!!! abstract "Problem Statement" - Write a C function that receives a string (character array) and uses pointers to count and return the total number of vowels and consonants in that string. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc012.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc012.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C function that receives a string (character array) and uses pointers to count and return the total number of vowels and consonants in that string. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc012.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc012.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc012.c] #include <stdio.h> #include <ctype.h> @@ -106,4 +70,3 @@ void charCounter(char str[], int *vowelCount, int *consonantCount) *consonantCount = tempConsonantCount; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc013.md b/docs-new/semester_1/practice-c/pc013.md @@ -1,64 +1,29 @@ --- -title: pc013.c -description: "C program source code for pc013.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc013.c' +description: 'Write a C program that defines a structure named Book with attributes bookID (int), title (string), and price (float). Include a user-defined function named updatePrice with the signature: void updatePrice(struct Book *b, float newPrice); The program should: Accept details for one book from the user. Display the details before the update. Use the function to update the price of the book. Display the updated details.' --- -# `pc013.c` +# pc013.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 29 Mar 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program that defines a structure named Book with attributes bookID (int), title (string), and price (float). Include a user-defined function named updatePrice with the signature: void updatePrice(struct Book *b, float newPrice); The program should: Accept details for one book from the user. Display the details before the update. Use the function to update the price of the book. Display the updated details. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 29 Mar 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program that defines a structure named Book with attributes bookID (int), title (string), and price (float). Include a user-defined function named updatePrice with the signature: void updatePrice(struct Book *b, float newPrice); The program should: Accept details for one book from the user. Display the details before the update. Use the function to update the price of the book. Display the updated details. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc013.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc013.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc013.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc013.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc013.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -133,4 +98,3 @@ void updatePrice(struct Book *book, float newPrice) book->price = newPrice; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc014.md b/docs-new/semester_1/practice-c/pc014.md @@ -1,64 +1,29 @@ --- -title: pc014.c -description: "C program source code for pc014.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc014.c' +description: 'Write a c program that defines a structure Student with the following members: roll (int), name (string), and marks (float). Do the below: Create an array to store details for 3 students. Read the details for these 3 student from a file named students.txt. (Assume the file contains data in the format: Roll Name Marks). Implement a recursive function float calculateTotal(struct Student arr[], int n) to calculate the sum of marks of all students in the array. Display each student''s details and the total marks calculated by the recursive function.' --- -# `pc014.c` +# pc014.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 30 Mar 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a c program that defines a structure Student with the following members: roll (int), name (string), and marks (float). Do the below: Create an array to store details for 3 students. Read the details for these 3 student from a file named students.txt. (Assume the file contains data in the format: Roll Name Marks). Implement a recursive function float calculateTotal(struct Student arr[], int n) to calculate the sum of marks of all students in the array. Display each student's details and the total marks calculated by the recursive function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 30 Mar 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a c program that defines a structure Student with the following members: roll (int), name (string), and marks (float). Do the below: Create an array to store details for 3 students. Read the details for these 3 student from a file named students.txt. (Assume the file contains data in the format: Roll Name Marks). Implement a recursive function float calculateTotal(struct Student arr[], int n) to calculate the sum of marks of all students in the array. Display each student's details and the total marks calculated by the recursive function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc014.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc014.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc014.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc014.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc014.c] #include<stdio.h> #include<stdlib.h> #include<string.h> @@ -110,4 +75,3 @@ void printDetails(Stu *stu, int n) { } } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc015.md b/docs-new/semester_1/practice-c/pc015.md @@ -1,64 +1,29 @@ --- -title: pc015.c -description: "C program source code for pc015.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc015.c' +description: 'Write a C program to reverse a string using a recursive function.' --- -# `pc015.c` +# pc015.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 30 Mar 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program to reverse a string using a recursive function. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 30 Mar 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program to reverse a string using a recursive function. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc015.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc015.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc015.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc015.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc015.c] #include<stdio.h> #include<stdlib.h> #include<string.h> @@ -95,4 +60,3 @@ void reverseString(char str[], char *start, char *end) { reverseString(str, start, end); } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc016.md b/docs-new/semester_1/practice-c/pc016.md @@ -1,64 +1,29 @@ --- -title: pc016.c -description: "C program source code for pc016.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc016.c' +description: 'Write a c program that records book data from user and stores them in to a file.' --- -# `pc016.c` - - -!!! abstract "Problem Statement" - Write a c program that records book data from user and stores them in to a file. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 31 Mar 2026 | -| **License** | MIT | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc016.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc016.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +# pc016.c + +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 31 Mar 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | + +## Problem Statement + +::: info Problem Statement +<b><i> +Write a c program that records book data from user and stores them in to a file. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc016.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc016.c) + +```c [pc016.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -166,4 +131,3 @@ bool writeLog(Book *book, int n) return true; } ``` -</div> diff --git a/docs-new/semester_1/practice-c/pc017.md b/docs-new/semester_1/practice-c/pc017.md @@ -1,64 +1,29 @@ --- -title: pc017.c -description: "C program source code for pc017.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> pc017.c' +description: 'Write a program to calculate the difference between two time periods using structures.' --- -# `pc017.c` +# pc017.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 21 Apr 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to calculate the difference between two time periods using structures. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 21 Apr 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to calculate the difference between two time periods using structures. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc017.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc017.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc017.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc017.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [pc017.c] #include <stdio.h> #include <stdlib.h> @@ -90,4 +55,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/temp/maheswar01.md b/docs-new/semester_1/temp/maheswar01.md @@ -1,54 +1,15 @@ --- -title: maheswar01.c -description: "C program source code for maheswar01.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> maheswar01.c' +description: 'C program — maheswar01.c' --- -# `maheswar01.c` - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar01.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar01.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +# maheswar01.c ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar01.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar01.c) + +```c [maheswar01.c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -235,4 +196,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/temp/maheswar02.md b/docs-new/semester_1/temp/maheswar02.md @@ -1,54 +1,15 @@ --- -title: maheswar02.c -description: "C program source code for maheswar02.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> maheswar02.c' +description: 'C program — maheswar02.c' --- -# `maheswar02.c` +# maheswar02.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar02.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar02.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar02.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar02.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar02.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [maheswar02.c] #include<stdio.h> #include<stdlib.h> @@ -82,4 +43,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/temp/sudipto1.md b/docs-new/semester_1/temp/sudipto1.md @@ -1,65 +1,29 @@ --- -title: sudipto1.c -description: "C program source code for sudipto1.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> sudipto1.c' +description: 'A smart home security controller monitors the state of several sensors to decide what action to take. Each second, the system reads data from sensors that can either be active or inactive. Based on the current state of all sensors, the controller must perform exactly one action, such as activating a warning, checking a specific zone, or declaring an intrusion. Write a C program that reads the sensor states as input and prints the corresponding system action. -- Conditions: 1. You must determine exactly one action for every possible combination of sensor states. 2. You are not allowed to use any conditional statements (if, else if, else, or the ternary operator?). 3. You are not allowed to use logical operators. 4. You must use a single switch statement to control the program''s behaviour. 5. Loops may only be used for reading input, not for making decisions. 6. The program should handle all possible combinations of the sensors'' active/inactive states and print the appropriate response each time. -- Example (for understanding): If all sensors are inactive, the system should remain idle. If some sensors are active, the system should issue warnings or alerts based on the situation. If all sensors are active, the system should declare a confirmed intrusion.' --- -# `sudipto1.c` +# sudipto1.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - A smart home security controller monitors the state of several sensors to decide what action to take. Each second, the system reads data from sensors that can either be active or inactive. Based on the current state of all sensors, the controller must perform exactly one action, such as activating a warning, checking a specific zone, or declaring an intrusion. Write a C program that reads the sensor states as input and prints the corresponding system action. -- Conditions: 1. You must determine exactly one action for every possible combination of sensor states. 2. You are not allowed to use any conditional statements (if, else if, else, or the ternary operator?). 3. You are not allowed to use logical operators. 4. You must use a single switch statement to control the program's behaviour. 5. Loops may only be used for reading input, not for making decisions. 6. The program should handle all possible combinations of the sensors' active/inactive states and print the appropriate response each time. -- Example (for understanding): If all sensors are inactive, the system should remain idle. If some sensors are active, the system should issue warnings or alerts based on the situation. If all sensors are active, the system should declare a confirmed intrusion. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudipto1.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudipto1.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudipto1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudipto1.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +A smart home security controller monitors the state of several sensors to decide what action to take. Each second, the system reads data from sensors that can either be active or inactive. Based on the current state of all sensors, the controller must perform exactly one action, such as activating a warning, checking a specific zone, or declaring an intrusion. Write a C program that reads the sensor states as input and prints the corresponding system action. -- Conditions: 1. You must determine exactly one action for every possible combination of sensor states. 2. You are not allowed to use any conditional statements (if, else if, else, or the ternary operator?). 3. You are not allowed to use logical operators. 4. You must use a single switch statement to control the program's behaviour. 5. Loops may only be used for reading input, not for making decisions. 6. The program should handle all possible combinations of the sensors' active/inactive states and print the appropriate response each time. -- Example (for understanding): If all sensors are inactive, the system should remain idle. If some sensors are active, the system should issue warnings or alerts based on the situation. If all sensors are active, the system should declare a confirmed intrusion. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudipto1.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudipto1.c) + +```c [sudipto1.c] #include <stdio.h> int main() { @@ -179,4 +143,3 @@ int main() printf("\nSecurity system shutting down.\n"); } ``` -</div> diff --git a/docs-new/semester_1/temp/sudiptoown01.md b/docs-new/semester_1/temp/sudiptoown01.md @@ -1,54 +1,15 @@ --- -title: sudiptoown01.c -description: "C program source code for sudiptoown01.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> sudiptoown01.c' +description: 'C program — sudiptoown01.c' --- -# `sudiptoown01.c` +# sudiptoown01.c -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudiptoown01.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudiptoown01.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudiptoown01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudiptoown01.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudiptoown01.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudiptoown01.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [sudiptoown01.c] #include <stdio.h> int casekey(int door, int window, int motion, int glass) { @@ -83,4 +44,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-001.md b/docs-new/semester_1/tuition-c/APC-PRAC-001.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-001.c -description: "C program source code for APC-PRAC-001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-001.c' +description: 'WAP to calculate area and perimeter of a rectangle by accepting length and breadth as input.' --- -# `APC-PRAC-001.c` +# APC-PRAC-001.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate area and perimeter of a rectangle by accepting length and breadth as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate area and perimeter of a rectangle by accepting length and breadth as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-001.c] #include<stdio.h> int main() { double length, breadth, area, perimeter; @@ -72,4 +37,3 @@ int main() { } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-002.md b/docs-new/semester_1/tuition-c/APC-PRAC-002.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-002.c -description: "C program source code for APC-PRAC-002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-002.c' +description: 'WAP to calculate area of a circle using math library method. Take radius of the circle as input.' --- -# `APC-PRAC-002.c` +# APC-PRAC-002.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate area of a circle using math library method. Take radius of the circle as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate area of a circle using math library method. Take radius of the circle as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-002.c] #include <stdio.h> #include <math.h> int main() @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-003.md b/docs-new/semester_1/tuition-c/APC-PRAC-003.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-003.c -description: "C program source code for APC-PRAC-003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-003.c' +description: 'WAP to accept diagonal of a square and calculate area, parimeter' --- -# `APC-PRAC-003.c` +# APC-PRAC-003.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to accept diagonal of a square and calculate area, parimeter +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to accept diagonal of a square and calculate area, parimeter +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-003.c] #include <stdio.h> #include <math.h> int main() @@ -75,4 +40,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-004.md b/docs-new/semester_1/tuition-c/APC-PRAC-004.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-004.c -description: "C program source code for APC-PRAC-004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-004.c' +description: 'WAP to calculate and display radius of a circle by taking the area as input.' --- -# `APC-PRAC-004.c` +# APC-PRAC-004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate and display radius of a circle by taking the area as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate and display radius of a circle by taking the area as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-004.c] #include <stdio.h> #include <math.h> int main() @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-005.md b/docs-new/semester_1/tuition-c/APC-PRAC-005.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-005.c -description: "C program source code for APC-PRAC-005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-005.c' +description: 'WAP a program that accept number of days as input and represent it as years, months and days.' --- -# `APC-PRAC-005.c` +# APC-PRAC-005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP a program that accept number of days as input and represent it as years, months and days. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP a program that accept number of days as input and represent it as years, months and days. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-005.c] #include <stdio.h> int main() { @@ -74,4 +39,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-006.md b/docs-new/semester_1/tuition-c/APC-PRAC-006.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-006.c -description: "C program source code for APC-PRAC-006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-006.c' +description: 'WAP that accept seconds as input and represent it an hours, minutes and seconds.' --- -# `APC-PRAC-006.c` +# APC-PRAC-006.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP that accept seconds as input and represent it an hours, minutes and seconds. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP that accept seconds as input and represent it an hours, minutes and seconds. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-006.c] #include <stdio.h> int main() { @@ -74,4 +39,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-007.md b/docs-new/semester_1/tuition-c/APC-PRAC-007.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-007.c -description: "C program source code for APC-PRAC-007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-007.c' +description: 'WAP that accept basic salary of an employee and display gross salary, net salary generated by below formula. DA = 25% of the basic salary. HRA = 12.5% of the basic salary. PF = 10% of the basic salary. gross salary = basic salary + da + hra net salary = gross salary - pf' --- -# `APC-PRAC-007.c` +# APC-PRAC-007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP that accept basic salary of an employee and display gross salary, net salary generated by below formula. DA = 25% of the basic salary. HRA = 12.5% of the basic salary. PF = 10% of the basic salary. gross salary = basic salary + da + hra net salary = gross salary - pf +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP that accept basic salary of an employee and display gross salary, net salary generated by below formula. DA = 25% of the basic salary. HRA = 12.5% of the basic salary. PF = 10% of the basic salary. gross salary = basic salary + da + hra net salary = gross salary - pf +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-007.c] #include <stdio.h> int main() { @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-008.md b/docs-new/semester_1/tuition-c/APC-PRAC-008.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-008.c -description: "C program source code for APC-PRAC-008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-008.c' +description: 'WAP to multiply and divide a number by 4 without using multiplication and division operator.' --- -# `APC-PRAC-008.c` +# APC-PRAC-008.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to multiply and divide a number by 4 without using multiplication and division operator. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to multiply and divide a number by 4 without using multiplication and division operator. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-008.c] #include <stdio.h> int main() { @@ -73,4 +38,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-009.md b/docs-new/semester_1/tuition-c/APC-PRAC-009.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-009.c -description: "C program source code for APC-PRAC-009.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-009.c' +description: 'WAP to swap two integer variable without using Third variable.' --- -# `APC-PRAC-009.c` +# APC-PRAC-009.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to swap two integer variable without using Third variable. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to swap two integer variable without using Third variable. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-009.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-009.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-009.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-009.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-009.c] #include <stdio.h> int main() { @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-010.md b/docs-new/semester_1/tuition-c/APC-PRAC-010.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-010.c -description: "C program source code for APC-PRAC-010.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-010.c' +description: 'WAP to calculate and display the valve of the given expression : (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) take a, b, c as input.' --- -# `APC-PRAC-010.c` +# APC-PRAC-010.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate and display the valve of the given expression : (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) take a, b, c as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate and display the valve of the given expression : (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) take a, b, c as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-010.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-010.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-010.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-010.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-010.c] #include <stdio.h> #include <math.h> int main() @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-011.md b/docs-new/semester_1/tuition-c/APC-PRAC-011.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-011.c -description: "C program source code for APC-PRAC-011.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-011.c' +description: 'Write a program to input positive number and check whether the number is perfect square or not. If the number is negetive then display appropriate message' --- -# `APC-PRAC-011.c` +# APC-PRAC-011.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input positive number and check whether the number is perfect square or not. If the number is negetive then display appropriate message +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input positive number and check whether the number is perfect square or not. If the number is negetive then display appropriate message +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-011.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-011.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-011.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-011.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-011.c] #include <stdio.h> #include <math.h> @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-012.md b/docs-new/semester_1/tuition-c/APC-PRAC-012.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-012.c -description: "C program source code for APC-PRAC-012.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-012.c' +description: 'Write a program to input three integer and find out second largest' --- -# `APC-PRAC-012.c` +# APC-PRAC-012.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input three integer and find out second largest +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input three integer and find out second largest +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-012.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-012.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-012.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-012.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-012.c] #include <stdio.h> int main() @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-013.md b/docs-new/semester_1/tuition-c/APC-PRAC-013.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-013.c -description: "C program source code for APC-PRAC-013.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-013.c' +description: 'Write a program to input sum(p), rate of interest(r), time(t) and type of interest (''s'' for simple interes, ''c'' for compound interest), then calculate and display the earned interest' --- -# `APC-PRAC-013.c` +# APC-PRAC-013.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input sum(p), rate of interest(r), time(t) and type of interest ('s' for simple interes, 'c' for compound interest), then calculate and display the earned interest +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input sum(p), rate of interest(r), time(t) and type of interest ('s' for simple interes, 'c' for compound interest), then calculate and display the earned interest +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-013.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-013.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-013.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-013.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-013.c] #include <stdio.h> #include <math.h> #include <ctype.h> @@ -88,4 +53,3 @@ int main() } } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-014.md b/docs-new/semester_1/tuition-c/APC-PRAC-014.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-014.c -description: "C program source code for APC-PRAC-014.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-014.c' +description: 'Write a program to calculate and display the maturity amount taking the sum and number of days as input. No. of Days Rate of Interest =========== ================ <= 180 5.57 % 181 - 364 7.75 % 365 - 500 9.25 % > 500 9.15 %' --- -# `APC-PRAC-014.c` +# APC-PRAC-014.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to calculate and display the maturity amount taking the sum and number of days as input. No. of Days Rate of Interest =========== ================ <= 180 5.57 % 181 - 364 7.75 % 365 - 500 9.25 % > 500 9.15 % +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to calculate and display the maturity amount taking the sum and number of days as input. No. of Days Rate of Interest =========== ================ &lt;= 180 5.57 % 181 - 364 7.75 % 365 - 500 9.25 % &gt; 500 9.15 % +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-014.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-014.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-014.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-014.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-014.c] #include <stdio.h> int main() @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-015.md b/docs-new/semester_1/tuition-c/APC-PRAC-015.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-015.c -description: "C program source code for APC-PRAC-015.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-015.c' +description: 'Write a program to display all numbers between lb (lower bound) and up (upper bound) which ends with digit 7 or divisible by 7.' --- -# `APC-PRAC-015.c` +# APC-PRAC-015.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to display all numbers between lb (lower bound) and up (upper bound) which ends with digit 7 or divisible by 7. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to display all numbers between lb (lower bound) and up (upper bound) which ends with digit 7 or divisible by 7. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-015.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-015.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-015.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-015.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-015.c] #include <stdio.h> int main() @@ -85,4 +50,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-016.md b/docs-new/semester_1/tuition-c/APC-PRAC-016.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-016.c -description: "C program source code for APC-PRAC-016.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-016.c' +description: 'Write a program to check palindrome number.' --- -# `APC-PRAC-016.c` +# APC-PRAC-016.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check palindrome number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check palindrome number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-016.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-016.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-016.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-016.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-016.c] #include <stdio.h> int main() @@ -79,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-017.md b/docs-new/semester_1/tuition-c/APC-PRAC-017.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-017.c -description: "C program source code for APC-PRAC-017.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-017.c' +description: 'Write a program to check perfect number.' --- -# `APC-PRAC-017.c` +# APC-PRAC-017.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check perfect number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check perfect number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-017.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-017.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-017.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-017.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-017.c] #include <stdio.h> int main() @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-018.md b/docs-new/semester_1/tuition-c/APC-PRAC-018.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-018.c -description: "C program source code for APC-PRAC-018.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-018.c' +description: 'Write a program to check Automorphic Number.' --- -# `APC-PRAC-018.c` +# APC-PRAC-018.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check Automorphic Number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check Automorphic Number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-018.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-018.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-018.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-018.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-018.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-018.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-018.c] #include <stdio.h> #include <math.h> @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-019.md b/docs-new/semester_1/tuition-c/APC-PRAC-019.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-019.c -description: "C program source code for APC-PRAC-019.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-019.c' +description: 'Write a program to find hcf of two numbers' --- -# `APC-PRAC-019.c` +# APC-PRAC-019.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to find hcf of two numbers +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to find hcf of two numbers +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-019.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-019.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-019.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-019.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-019.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-019.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-019.c] #include <stdio.h> int main() @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-020.md b/docs-new/semester_1/tuition-c/APC-PRAC-020.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-020.c -description: "C program source code for APC-PRAC-020.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-020.c' +description: 'Write a program to check if two number is co-prime or not' --- -# `APC-PRAC-020.c` +# APC-PRAC-020.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check if two number is co-prime or not +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check if two number is co-prime or not +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-020.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-020.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-020.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-020.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-020.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-020.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-020.c] #include <stdio.h> int main() @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-021.md b/docs-new/semester_1/tuition-c/APC-PRAC-021.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-021.c -description: "C program source code for APC-PRAC-021.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-021.c' +description: 'Write a program to check special number (sum of digit + product of digit = original number)' --- -# `APC-PRAC-021.c` +# APC-PRAC-021.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check special number (sum of digit + product of digit = original number) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check special number (sum of digit + product of digit = original number) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-021.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-021.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-021.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-021.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-021.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-021.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-021.c] #include <stdio.h> int main() @@ -81,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-022.md b/docs-new/semester_1/tuition-c/APC-PRAC-022.md @@ -1,65 +1,29 @@ --- -title: APC-PRAC-022.c -description: "C program source code for APC-PRAC-022.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-022.c' +description: 'Write a program to accept a number and check whether the number is twisted prime or not' --- -# `APC-PRAC-022.c` +# APC-PRAC-022.c - -!!! abstract "Problem Statement" - Write a program to accept a number and check whether the number is twisted prime or not - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-022.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-022.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to accept a number and check whether the number is twisted prime or not +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-022.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-022.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-022.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-022.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-022.c] #include <stdio.h> #include <math.h> #include <stdbool.h> @@ -107,4 +71,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-023.md b/docs-new/semester_1/tuition-c/APC-PRAC-023.md @@ -1,65 +1,29 @@ --- -title: APC-PRAC-023.c -description: "C program source code for APC-PRAC-023.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-023.c' +description: 'Pattern : (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, 15, ... upto n times' --- -# `APC-PRAC-023.c` +# APC-PRAC-023.c - -!!! abstract "Problem Statement" - Pattern : (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, 15, ... upto n times - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-023.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-023.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Pattern : (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, 15, ... upto n times +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-023.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-023.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-023.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-023.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-023.c] #include <stdio.h> #include <stdbool.h> @@ -93,4 +57,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-024.md b/docs-new/semester_1/tuition-c/APC-PRAC-024.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-024.c -description: "C program source code for APC-PRAC-024.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-024.c' +description: 'Pattern: 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1' --- -# `APC-PRAC-024.c` +# APC-PRAC-024.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-024.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-024.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-024.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-024.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-024.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-024.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-024.c] #include<stdio.h> int main() { int n, i, j; @@ -73,4 +38,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-025.md b/docs-new/semester_1/tuition-c/APC-PRAC-025.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-025.c -description: "C program source code for APC-PRAC-025.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-025.c' +description: 'Pattern: 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5' --- -# `APC-PRAC-025.c` +# APC-PRAC-025.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-025.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-025.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-025.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-025.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-025.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-025.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-025.c] #include<stdio.h> int main() { int n, i, j; @@ -73,4 +38,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-026.md b/docs-new/semester_1/tuition-c/APC-PRAC-026.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-026.c -description: "C program source code for APC-PRAC-026.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-026.c' +description: 'Pattern: 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1' --- -# `APC-PRAC-026.c` +# APC-PRAC-026.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-026.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-026.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-026.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-026.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-026.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-026.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-026.c] #include<stdio.h> int main() { int n, i, j; @@ -73,4 +38,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-027.md b/docs-new/semester_1/tuition-c/APC-PRAC-027.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-027.c -description: "C program source code for APC-PRAC-027.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-027.c' +description: 'Pattern: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5' --- -# `APC-PRAC-027.c` +# APC-PRAC-027.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-027.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-027.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-027.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-027.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-027.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-027.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-027.c] #include<stdio.h> int main() { int n, i, j; @@ -73,4 +38,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-028.md b/docs-new/semester_1/tuition-c/APC-PRAC-028.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-028.c -description: "C program source code for APC-PRAC-028.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-028.c' +description: 'Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15' --- -# `APC-PRAC-028.c` +# APC-PRAC-028.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-028.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-028.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-028.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-028.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-028.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-028.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-028.c] #include<stdio.h> int main() { int n, i, j, temp = 1; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-029.md b/docs-new/semester_1/tuition-c/APC-PRAC-029.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-029.c -description: "C program source code for APC-PRAC-029.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-029.c' +description: 'Pattern: 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1' --- -# `APC-PRAC-029.c` +# APC-PRAC-029.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-029.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-029.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-029.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-029.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-029.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-029.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-029.c] #include<stdio.h> int main() { int n, i, j; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-030.md b/docs-new/semester_1/tuition-c/APC-PRAC-030.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-030.c -description: "C program source code for APC-PRAC-030.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-030.c' +description: 'Pattern: # @ @ # # # @ @ @ @ # # # # #' --- -# `APC-PRAC-030.c` +# APC-PRAC-030.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: # @ @ # # # @ @ @ @ # # # # # +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: # @ @ # # # @ @ @ @ # # # # # +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-030.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-030.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-030.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-030.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-030.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-030.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-030.c] #include<stdio.h> int main() { int n, i, j; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-031.md b/docs-new/semester_1/tuition-c/APC-PRAC-031.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-031.c -description: "C program source code for APC-PRAC-031.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-031.c' +description: 'Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15' --- -# `APC-PRAC-031.c` +# APC-PRAC-031.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-031.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-031.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-031.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-031.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-031.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-031.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-031.c] #include<stdio.h> int main() { int n, i, j, temp = 1; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-032.md b/docs-new/semester_1/tuition-c/APC-PRAC-032.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-032.c -description: "C program source code for APC-PRAC-032.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-032.c' +description: 'Pattern: A B B C C C D D D D E E E E E' --- -# `APC-PRAC-032.c` +# APC-PRAC-032.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Pattern: A B B C C C D D D D E E E E E +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Pattern: A B B C C C D D D D E E E E E +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-032.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-032.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-032.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-032.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-032.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-032.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-032.c] #include<stdio.h> int main() { int n, i, j; char temp = 'A'; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-033.md b/docs-new/semester_1/tuition-c/APC-PRAC-033.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-033.c -description: "C program source code for APC-PRAC-033.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-033.c' +description: 'Print the factorial of the digits off a number' --- -# `APC-PRAC-033.c` +# APC-PRAC-033.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Print the factorial of the digits off a number +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Print the factorial of the digits off a number +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-033.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-033.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-033.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-033.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-033.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-033.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-033.c] #include <stdio.h> int factorial(int); @@ -90,4 +55,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-034.md b/docs-new/semester_1/tuition-c/APC-PRAC-034.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-034.c -description: "C program source code for APC-PRAC-034.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-034.c' +description: 'Take a Range as input from user and print the prime number between it.' --- -# `APC-PRAC-034.c` +# APC-PRAC-034.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Take a Range as input from user and print the prime number between it. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Take a Range as input from user and print the prime number between it. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-034.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-034.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-034.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-034.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-034.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-034.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-034.c] #include <stdio.h> #include <math.h> @@ -91,4 +56,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-035.md b/docs-new/semester_1/tuition-c/APC-PRAC-035.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-035.c -description: "C program source code for APC-PRAC-035.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-035.c' +description: 'Print all the 3 and 4 digit palindrome number.' --- -# `APC-PRAC-035.c` +# APC-PRAC-035.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Print all the 3 and 4 digit palindrome number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Print all the 3 and 4 digit palindrome number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-035.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-035.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-035.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-035.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-035.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-035.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-035.c] #include <stdio.h> int palindromeCheck(int); @@ -87,4 +52,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-036.md b/docs-new/semester_1/tuition-c/APC-PRAC-036.md @@ -1,65 +1,29 @@ --- -title: APC-PRAC-036.c -description: "C program source code for APC-PRAC-036.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-036.c' +description: 'Check krishnamurty number.' --- -# `APC-PRAC-036.c` +# APC-PRAC-036.c - -!!! abstract "Problem Statement" - Check krishnamurty number. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-036.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-036.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Check krishnamurty number. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-036.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-036.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-036.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-036.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-036.c] #include <stdio.h> int factorial(int); @@ -99,4 +63,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-037.md b/docs-new/semester_1/tuition-c/APC-PRAC-037.md @@ -1,65 +1,29 @@ --- -title: APC-PRAC-037.c -description: "C program source code for APC-PRAC-037.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-037.c' +description: 'Show all the armstrong number between a range.' --- -# `APC-PRAC-037.c` +# APC-PRAC-037.c - -!!! abstract "Problem Statement" - Show all the armstrong number between a range. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-037.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-037.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Show all the armstrong number between a range. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-037.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-037.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-037.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-037.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-037.c] #include <stdio.h> #include <math.h> @@ -99,4 +63,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-038.md b/docs-new/semester_1/tuition-c/APC-PRAC-038.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-038.c -description: "C program source code for APC-PRAC-038.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-038.c' +description: 'Print all combinations of two two-digit numbers such that the sum of digits of both numbers is equal. Example: 23 and 41 → (2+3) = 5, (4+1) = 5.' --- -# `APC-PRAC-038.c` +# APC-PRAC-038.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Print all combinations of two two-digit numbers such that the sum of digits of both numbers is equal. Example: 23 and 41 → (2+3) = 5, (4+1) = 5. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Print all combinations of two two-digit numbers such that the sum of digits of both numbers is equal. Example: 23 and 41 → (2+3) = 5, (4+1) = 5. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-038.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-038.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-038.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-038.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-038.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-038.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-038.c] #include <stdio.h> int main() @@ -82,4 +47,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-039.md b/docs-new/semester_1/tuition-c/APC-PRAC-039.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-039.c -description: "C program source code for APC-PRAC-039.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-039.c' +description: 'Write a C program to print all unique combinations of three numbers (a, b, c) such that: 1 ≤ a, b, c ≤ 30 and a² + b² = c² (Pythagorean triplets)' --- -# `APC-PRAC-039.c` +# APC-PRAC-039.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program to print all unique combinations of three numbers (a, b, c) such that: 1 ≤ a, b, c ≤ 30 and a² + b² = c² (Pythagorean triplets) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program to print all unique combinations of three numbers (a, b, c) such that: 1 ≤ a, b, c ≤ 30 and a² + b² = c² (Pythagorean triplets) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-039.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-039.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-039.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-039.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-039.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-039.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-039.c] #include <stdio.h> int main() @@ -85,4 +50,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-040.md b/docs-new/semester_1/tuition-c/APC-PRAC-040.md @@ -1,64 +1,29 @@ --- -title: APC-PRAC-040.c -description: "C program source code for APC-PRAC-040.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-040.c' +description: 'Write a C program to count how many numbers between 100 and 999 have all distinct digits (e.g., 123, 709, 981).' --- -# `APC-PRAC-040.c` +# APC-PRAC-040.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program to count how many numbers between 100 and 999 have all distinct digits (e.g., 123, 709, 981). +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program to count how many numbers between 100 and 999 have all distinct digits (e.g., 123, 709, 981). +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-040.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-040.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-040.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-040.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-040.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-040.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-040.c] #include <stdio.h> int main() @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-041.md b/docs-new/semester_1/tuition-c/APC-PRAC-041.md @@ -1,65 +1,29 @@ --- -title: APC-PRAC-041.c -description: "C program source code for APC-PRAC-041.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-041.c' +description: 'Write a C program to find and print all twin prime pairs between 1 and n using nested loops. (Twin primes are prime numbers having a difference of 2, like 11 and 13)' --- -# `APC-PRAC-041.c` +# APC-PRAC-041.c - -!!! abstract "Problem Statement" - Write a C program to find and print all twin prime pairs between 1 and n using nested loops. (Twin primes are prime numbers having a difference of 2, like 11 and 13) - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-041.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-041.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program to find and print all twin prime pairs between 1 and n using nested loops. (Twin primes are prime numbers having a difference of 2, like 11 and 13) +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-041.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-041.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-041.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-041.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-PRAC-041.c] #include <stdio.h> #include <math.h> @@ -99,4 +63,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-042.md b/docs-new/semester_1/tuition-c/APC-PRAC-042.md @@ -1,65 +1,29 @@ --- -title: APC-PRAC-042.c -description: "C program source code for APC-PRAC-042.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-PRAC-042.c' +description: 'Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome.' --- -# `APC-PRAC-042.c` +# APC-PRAC-042.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-042.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-042.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-042.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-042.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Write a function to check whether a given string is a palindrome. Use this function to determine whether an entered string is Palindrome. +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-042.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-042.c) + +```c [APC-PRAC-042.c] #include <stdio.h> #include <string.h> @@ -117,4 +81,3 @@ int isPalindrome(char str[]) return 1; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-001.md b/docs-new/semester_1/tuition-c/APC-S-001.md @@ -1,60 +1,21 @@ --- -title: APC-S-001.c -description: "C program source code for APC-S-001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-001.c' +description: 'C program — APC-S-001.c' --- -# `APC-S-001.c` +# APC-S-001.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-001.c] #include<stdio.h> int main() { int a = 9, b = 4, c; @@ -67,4 +28,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-002.md b/docs-new/semester_1/tuition-c/APC-S-002.md @@ -1,60 +1,21 @@ --- -title: APC-S-002.c -description: "C program source code for APC-S-002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-002.c' +description: 'C program — APC-S-002.c' --- -# `APC-S-002.c` +# APC-S-002.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-002.c] #include<stdio.h> int main() { int a = 5, b = 5, c = 10; @@ -64,4 +25,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-003.md b/docs-new/semester_1/tuition-c/APC-S-003.md @@ -1,60 +1,21 @@ --- -title: APC-S-003.c -description: "C program source code for APC-S-003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-003.c' +description: 'C program — APC-S-003.c' --- -# `APC-S-003.c` +# APC-S-003.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-003.c] #include <stdio.h> int main() { int a = 5, b = 5, c = 10, result; @@ -80,4 +41,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-004.md b/docs-new/semester_1/tuition-c/APC-S-004.md @@ -1,64 +1,29 @@ --- -title: APC-S-004.c -description: "C program source code for APC-S-004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-004.c' +description: 'Program to print first 10 natural numbers using while loop.' --- -# `APC-S-004.c` +# APC-S-004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Program to print first 10 natural numbers using while loop. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Program to print first 10 natural numbers using while loop. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-004.c] #include <stdio.h> #include <conio.h> @@ -75,4 +40,3 @@ void main() getch(); } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-005.md b/docs-new/semester_1/tuition-c/APC-S-005.md @@ -1,64 +1,29 @@ --- -title: APC-S-005.c -description: "C program source code for APC-S-005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-005.c' +description: 'Write to reverse a number.' --- -# `APC-S-005.c` +# APC-S-005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write to reverse a number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write to reverse a number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-005.c] #include <stdio.h> #include <conio.h> @@ -78,4 +43,3 @@ void main() getch(); } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-006.md b/docs-new/semester_1/tuition-c/APC-S-006.md @@ -1,64 +1,29 @@ --- -title: APC-S-006.c -description: "C program source code for APC-S-006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-006.c' +description: 'Write a program to print first 10 multiple of 5' --- -# `APC-S-006.c` +# APC-S-006.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to print first 10 multiple of 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to print first 10 multiple of 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-006.c] #include <stdio.h> #include <conio.h> @@ -75,4 +40,3 @@ void main() getch(); } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-007.md b/docs-new/semester_1/tuition-c/APC-S-007.md @@ -1,64 +1,29 @@ --- -title: APC-S-007.c -description: "C program source code for APC-S-007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-007.c' +description: 'Write a program the sum of first 10 natural numbers.' --- -# `APC-S-007.c` +# APC-S-007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program the sum of first 10 natural numbers. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program the sum of first 10 natural numbers. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-007.c] #include <stdio.h> #include <conio.h> @@ -74,4 +39,3 @@ void main() getch(); } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-008.md b/docs-new/semester_1/tuition-c/APC-S-008.md @@ -1,65 +1,29 @@ --- -title: APC-S-008.c -description: "C program source code for APC-S-008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-008.c' +description: 'Write a program to print the sum of two matrix as input given by the user.' --- -# `APC-S-008.c` +# APC-S-008.c - -!!! abstract "Problem Statement" - Write a program to print the sum of two matrix as input given by the user. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to print the sum of two matrix as input given by the user. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-008.c] #include <stdio.h> int main() @@ -115,4 +79,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-009.md b/docs-new/semester_1/tuition-c/APC-S-009.md @@ -1,65 +1,29 @@ --- -title: APC-S-009.c -description: "C program source code for APC-S-009.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-009.c' +description: 'Write a program to find the upper and lower triangular matrix.' --- -# `APC-S-009.c` +# APC-S-009.c - -!!! abstract "Problem Statement" - Write a program to find the upper and lower triangular matrix. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-009.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-009.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to find the upper and lower triangular matrix. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-009.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-009.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-009.c] #include <stdio.h> int main() @@ -120,4 +84,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-010.md b/docs-new/semester_1/tuition-c/APC-S-010.md @@ -1,64 +1,29 @@ --- -title: APC-S-010.c -description: "C program source code for APC-S-010.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-010.c' +description: 'Write a program to input a new element at a specific position of an array. a[] = {4, 5, 2, 10, 6, 9, 8}, newItem = 7, position = 3' --- -# `APC-S-010.c` +# APC-S-010.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input a new element at a specific position of an array. a[] = {4, 5, 2, 10, 6, 9, 8}, newItem = 7, position = 3 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input a new element at a specific position of an array. a[] = {4, 5, 2, 10, 6, 9, 8}, newItem = 7, position = 3 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-010.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-010.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-010.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-010.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-010.c] #include <stdio.h> int main() @@ -93,4 +58,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-011.md b/docs-new/semester_1/tuition-c/APC-S-011.md @@ -1,64 +1,29 @@ --- -title: APC-S-011.c -description: "C program source code for APC-S-011.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-011.c' +description: 'Linear search' --- -# `APC-S-011.c` +# APC-S-011.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Linear search +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Linear search +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-011.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-011.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-011.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-011.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-011.c] #include <stdio.h> int main() @@ -88,4 +53,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-012.md b/docs-new/semester_1/tuition-c/APC-S-012.md @@ -1,64 +1,29 @@ --- -title: APC-S-012.c -description: "C program source code for APC-S-012.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-012.c' +description: 'Write a program to check if a matrix is a sparx matrix.' --- -# `APC-S-012.c` +# APC-S-012.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check if a matrix is a sparx matrix. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check if a matrix is a sparx matrix. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-012.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-012.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-012.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-012.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-012.c] #include <stdio.h> int main() @@ -94,4 +59,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-013.md b/docs-new/semester_1/tuition-c/APC-S-013.md @@ -1,64 +1,29 @@ --- -title: APC-S-013.c -description: "C program source code for APC-S-013.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-013.c' +description: 'Write a fuction to calculate the average of an array' --- -# `APC-S-013.c` +# APC-S-013.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a fuction to calculate the average of an array +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a fuction to calculate the average of an array +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-013.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-013.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-013.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-013.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-013.c] #include <stdio.h> double average(int []); @@ -84,4 +49,3 @@ double average(int marks[10]) return sum / 10.0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-S-014.md b/docs-new/semester_1/tuition-c/APC-S-014.md @@ -1,64 +1,29 @@ --- -title: APC-S-014.c -description: "C program source code for APC-S-014.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-S-014.c' +description: 'Write a program to store roll no, name and marks of 5 students then print it. use structure' --- -# `APC-S-014.c` +# APC-S-014.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 14 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to store roll no, name and marks of 5 students then print it. use structure +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 14 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to store roll no, name and marks of 5 students then print it. use structure +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-014.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-014.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-014.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-014.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-S-014.c] #include <stdio.h> #include <string.h> @@ -92,4 +57,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-001.md b/docs-new/semester_1/tuition-c/APC-SPS-001.md @@ -1,60 +1,21 @@ --- -title: APC-SPS-001.c -description: "C program source code for APC-SPS-001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-001.c' +description: 'C program — APC-SPS-001.c' --- -# `APC-SPS-001.c` +# APC-SPS-001.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-001.c] #include<stdio.h> int main() { int a, b, sum, sub, multi, div, mod; @@ -75,4 +36,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-002.md b/docs-new/semester_1/tuition-c/APC-SPS-002.md @@ -1,64 +1,29 @@ --- -title: APC-SPS-002.c -description: "C program source code for APC-SPS-002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-002.c' +description: 'WAP to swap two integers. Display both numbers before and after swap' --- -# `APC-SPS-002.c` +# APC-SPS-002.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to swap two integers. Display both numbers before and after swap +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to swap two integers. Display both numbers before and after swap +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-002.c] #include<stdio.h> int main() { int a = 10, b = 20, temp; @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-003.md b/docs-new/semester_1/tuition-c/APC-SPS-003.md @@ -1,64 +1,29 @@ --- -title: APC-SPS-003.c -description: "C program source code for APC-SPS-003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-003.c' +description: 'Bitwise AND ''&''' --- -# `APC-SPS-003.c` +# APC-SPS-003.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Bitwise AND '&' +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Bitwise AND '&amp;' +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-003.c] #include<stdio.h> int main() { unsigned int a = 4, b = 5, c = 6; @@ -69,4 +34,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-004.md b/docs-new/semester_1/tuition-c/APC-SPS-004.md @@ -1,60 +1,21 @@ --- -title: APC-SPS-004.c -description: "C program source code for APC-SPS-004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-004.c' +description: 'C program — APC-SPS-004.c' --- -# `APC-SPS-004.c` +# APC-SPS-004.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-004.c] #include<stdio.h> int main() { int x = 25, y = 19, z; @@ -64,4 +25,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-005.md b/docs-new/semester_1/tuition-c/APC-SPS-005.md @@ -1,64 +1,29 @@ --- -title: APC-SPS-005.c -description: "C program source code for APC-SPS-005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-005.c' +description: 'Bitwise OR ''|''' --- -# `APC-SPS-005.c` +# APC-SPS-005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Bitwise OR '|' +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Bitwise OR '|' +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-005.c] #include<stdio.h> int main() { int x = 12, y = 14, z = 10, res; @@ -71,4 +36,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-006.md b/docs-new/semester_1/tuition-c/APC-SPS-006.md @@ -1,64 +1,29 @@ --- -title: APC-SPS-006.c -description: "C program source code for APC-SPS-006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-006.c' +description: 'Bitwise NOT ''~''' --- -# `APC-SPS-006.c` +# APC-SPS-006.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Bitwise NOT '~' +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Bitwise NOT '~' +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-006.c] #include<stdio.h> int main() { int x = 12, y = 15, z = 21; @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-007.md b/docs-new/semester_1/tuition-c/APC-SPS-007.md @@ -1,64 +1,29 @@ --- -title: APC-SPS-007.c -description: "C program source code for APC-SPS-007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-007.c' +description: 'WAP to check a number is even or odd using bitwise operator' --- -# `APC-SPS-007.c` +# APC-SPS-007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to check a number is even or odd using bitwise operator +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to check a number is even or odd using bitwise operator +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-007.c] #include<stdio.h> int main() { int x, res = 1; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-008.md b/docs-new/semester_1/tuition-c/APC-SPS-008.md @@ -1,64 +1,29 @@ --- -title: APC-SPS-008.c -description: "C program source code for APC-SPS-008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> APC-SPS-008.c' +description: 'WAP to calculate area of circle by accepting radius as input' --- -# `APC-SPS-008.c` +# APC-SPS-008.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate area of circle by accepting radius as input +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate area of circle by accepting radius as input +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [APC-SPS-008.c] #include<stdio.h> #include<math.h> int main() { @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P001.md b/docs-new/semester_1/tuition-c/P001.md @@ -1,64 +1,24 @@ --- -title: P001.c -description: "C program source code for P001.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P001.c' +description: 'C program — P001.c' --- -# `P001.c` +# P001.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P001.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P001.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P001.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P001.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P001.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P001.c] #include<stdio.h> int main() { printf("Hello world"); return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P002.md b/docs-new/semester_1/tuition-c/P002.md @@ -1,64 +1,24 @@ --- -title: P002.c -description: "C program source code for P002.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P002.c' +description: 'C program — P002.c' --- -# `P002.c` +# P002.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P002.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P002.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P002.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P002.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P002.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P002.c] #include<stdio.h> int main() { printf("Hello\nworld"); return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P003.md b/docs-new/semester_1/tuition-c/P003.md @@ -1,60 +1,21 @@ --- -title: P003.c -description: "C program source code for P003.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P003.c' +description: 'C program — P003.c' --- -# `P003.c` +# P003.c -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P003.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P003.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P003.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P003.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P003.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P003.c] #include<stdio.h> int main() { int a, b, sum, multi; @@ -69,4 +30,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P004.md b/docs-new/semester_1/tuition-c/P004.md @@ -1,64 +1,29 @@ --- -title: P004.c -description: "C program source code for P004.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P004.c' +description: 'WAP to find and display the value of given expression : ((x+3)/4) - ((2x+4)/3) taking the value of x = 5' --- -# `P004.c` +# P004.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to find and display the value of given expression : ((x+3)/4) - ((2x+4)/3) taking the value of x = 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to find and display the value of given expression : ((x+3)/4) - ((2x+4)/3) taking the value of x = 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P004.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P004.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P004.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P004.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P004.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P004.c] #include<stdio.h> int main() { double x =5, result; @@ -67,4 +32,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P005.md b/docs-new/semester_1/tuition-c/P005.md @@ -1,64 +1,29 @@ --- -title: P005.c -description: "C program source code for P005.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P005.c' +description: 'A person is paid Rs. 455 for each day he works and fined Rs. 150 for each day he remains absent. WAP to calculate his monthly income taking the number of days present as input.' --- -# `P005.c` +# P005.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - A person is paid Rs. 455 for each day he works and fined Rs. 150 for each day he remains absent. WAP to calculate his monthly income taking the number of days present as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +A person is paid Rs. 455 for each day he works and fined Rs. 150 for each day he remains absent. WAP to calculate his monthly income taking the number of days present as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P005.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P005.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P005.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P005.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P005.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P005.c] #include<stdio.h> int main() { int daily_wage = 455, fine = 150, present, absent, income; @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P006.md b/docs-new/semester_1/tuition-c/P006.md @@ -1,64 +1,29 @@ --- -title: P006.c -description: "C program source code for P006.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P006.c' +description: 'The normal temperature of human body is 98.6 Degree Fahrenheit. WAP to convert the temperature to Degree Celcius and display the output.' --- -# `P006.c` +# P006.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - The normal temperature of human body is 98.6 Degree Fahrenheit. WAP to convert the temperature to Degree Celcius and display the output. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +The normal temperature of human body is 98.6 Degree Fahrenheit. WAP to convert the temperature to Degree Celcius and display the output. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P006.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P006.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P006.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P006.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P006.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P006.c] #include<stdio.h> int main() { double f = 98.6, c; @@ -67,4 +32,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P007.md b/docs-new/semester_1/tuition-c/P007.md @@ -1,64 +1,29 @@ --- -title: P007.c -description: "C program source code for P007.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P007.c' +description: 'A shopkeeper offers 10% discount on printed price of a digital camera. However a customer has to pay 6% GST on the remaining amount. WAP to calculate and display the amount to paid by the customer, taking the printed price as input.' --- -# `P007.c` +# P007.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - A shopkeeper offers 10% discount on printed price of a digital camera. However a customer has to pay 6% GST on the remaining amount. WAP to calculate and display the amount to paid by the customer, taking the printed price as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +A shopkeeper offers 10% discount on printed price of a digital camera. However a customer has to pay 6% GST on the remaining amount. WAP to calculate and display the amount to paid by the customer, taking the printed price as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P007.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P007.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P007.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P007.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P007.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P007.c] #include<stdio.h> int main() { double mrp, final_price, temp; @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P008.md b/docs-new/semester_1/tuition-c/P008.md @@ -1,64 +1,29 @@ --- -title: P008.c -description: "C program source code for P008.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P008.c' +description: 'A shopkeeper offers 30% discount on purchasing an item whereas the other shopkeeper offers 2 successive discount of 20% and 10% for purchasing the same item. WAP to caompute and display the discounted price of the item by taking the price as input.' --- -# `P008.c` +# P008.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - A shopkeeper offers 30% discount on purchasing an item whereas the other shopkeeper offers 2 successive discount of 20% and 10% for purchasing the same item. WAP to caompute and display the discounted price of the item by taking the price as input. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +A shopkeeper offers 30% discount on purchasing an item whereas the other shopkeeper offers 2 successive discount of 20% and 10% for purchasing the same item. WAP to caompute and display the discounted price of the item by taking the price as input. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P008.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P008.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P008.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P008.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P008.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P008.c] #include<stdio.h> int main() { double mrp, shop1, shop2, temp; @@ -72,4 +37,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P009.md b/docs-new/semester_1/tuition-c/P009.md @@ -1,64 +1,29 @@ --- -title: P009.c -description: "C program source code for P009.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P009.c' +description: 'WAP to calculate gross and net salary by accepting basic salary as input. IMP : DA = 30% of Basic Pay HRA = 20% of Basic Pay PF = 12.5% of Basic Pay Gross Salary = Basic Pay + DA + HRA Net Salary = Gross Salary - PF' --- -# `P009.c` +# P009.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate gross and net salary by accepting basic salary as input. IMP : DA = 30% of Basic Pay HRA = 20% of Basic Pay PF = 12.5% of Basic Pay Gross Salary = Basic Pay + DA + HRA Net Salary = Gross Salary - PF +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate gross and net salary by accepting basic salary as input. IMP : DA = 30% of Basic Pay HRA = 20% of Basic Pay PF = 12.5% of Basic Pay Gross Salary = Basic Pay + DA + HRA Net Salary = Gross Salary - PF +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P009.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P009.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P009.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P009.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P009.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P009.c] #include<stdio.h> int main() { double bs, da, hra, pf, gs, ns; @@ -74,4 +39,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P010.md b/docs-new/semester_1/tuition-c/P010.md @@ -1,64 +1,29 @@ --- -title: P010.c -description: "C program source code for P010.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P010.c' +description: 'WAP to find and display the difference between compound Interest and Simple Interest. Take principle amount as input. Hint : si = (p * r * t) / 100 a = p * ((1 + (r / 100)) ^ t) ci = a - p' --- -# `P010.c` +# P010.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to find and display the difference between compound Interest and Simple Interest. Take principle amount as input. Hint : si = (p * r * t) / 100 a = p * ((1 + (r / 100)) ^ t) ci = a - p +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to find and display the difference between compound Interest and Simple Interest. Take principle amount as input. Hint : si = (p * r * t) / 100 a = p * ((1 + (r / 100)) ^ t) ci = a - p +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P010.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P010.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P010.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P010.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P010.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P010.c] #include<stdio.h> #include<math.h> int main() { @@ -75,4 +40,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P011.md b/docs-new/semester_1/tuition-c/P011.md @@ -1,64 +1,29 @@ --- -title: P011.c -description: "C program source code for P011.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P011.c' +description: 'The time period of a simple pendulam is given by the formula : t = 2 * pi * square_root(l / g) WAP to calculate T take length(L) and gravity as input' --- -# `P011.c` +# P011.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - The time period of a simple pendulam is given by the formula : t = 2 * pi * square_root(l / g) WAP to calculate T take length(L) and gravity as input +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +The time period of a simple pendulam is given by the formula : t = 2 * pi * square_root(l / g) WAP to calculate T take length(L) and gravity as input +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P011.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P011.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P011.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P011.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P011.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P011.c] #include<stdio.h> #include<math.h> int main() { @@ -71,4 +36,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P012.md b/docs-new/semester_1/tuition-c/P012.md @@ -1,64 +1,29 @@ --- -title: P012.c -description: "C program source code for P012.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P012.c' +description: 'WAP to swap two integer variable without using third variable' --- -# `P012.c` +# P012.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to swap two integer variable without using third variable +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to swap two integer variable without using third variable +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P012.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P012.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P012.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P012.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P012.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P012.c] #include<stdio.h> int main() { int a = 4, b = 6; @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P013.md b/docs-new/semester_1/tuition-c/P013.md @@ -1,64 +1,29 @@ --- -title: P013.c -description: "C program source code for P013.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P013.c' +description: 'WAP to swap two integer variable without using third variable' --- -# `P013.c` +# P013.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to swap two integer variable without using third variable +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to swap two integer variable without using third variable +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P013.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P013.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P013.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P013.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P013.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P013.c] #include<stdio.h> #include<math.h> int main() { @@ -71,4 +36,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P014.md b/docs-new/semester_1/tuition-c/P014.md @@ -1,64 +1,29 @@ --- -title: P014.c -description: "C program source code for P014.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P014.c' +description: 'WAP to accept the diagonal of square. Find and display the area and perimeter of the square.' --- -# `P014.c` +# P014.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to accept the diagonal of square. Find and display the area and perimeter of the square. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to accept the diagonal of square. Find and display the area and perimeter of the square. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P014.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P014.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P014.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P014.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P014.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P014.c] #include<stdio.h> #include<math.h> int main() { @@ -73,4 +38,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P015.md b/docs-new/semester_1/tuition-c/P015.md @@ -1,64 +1,29 @@ --- -title: P015.c -description: "C program source code for P015.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P015.c' +description: 'WAP to accept number of days and display it after converting into number of years, months and days' --- -# `P015.c` +# P015.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to accept number of days and display it after converting into number of years, months and days +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to accept number of days and display it after converting into number of years, months and days +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P015.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P015.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P015.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P015.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P015.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P015.c] #include<stdio.h> int main() { int day, month, year, temp; @@ -73,4 +38,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P016.md b/docs-new/semester_1/tuition-c/P016.md @@ -1,64 +1,29 @@ --- -title: P016.c -description: "C program source code for P016.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P016.c' +description: 'WAP to calculate and display radius of a circle by taking the area as input' --- -# `P016.c` +# P016.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate and display radius of a circle by taking the area as input +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate and display radius of a circle by taking the area as input +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P016.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P016.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P016.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P016.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P016.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P016.c] #include<stdio.h> #include<math.h> int main() { @@ -70,4 +35,3 @@ int main() { return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P017.md b/docs-new/semester_1/tuition-c/P017.md @@ -1,64 +1,29 @@ --- -title: P017.c -description: "C program source code for P017.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P017.c' +description: 'Find maximum between three number.' --- -# `P017.c` +# P017.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Find maximum between three number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Find maximum between three number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P017.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P017.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P017.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P017.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P017.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P017.c] #include <stdio.h> int main() { @@ -74,4 +39,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P018.md b/docs-new/semester_1/tuition-c/P018.md @@ -1,64 +1,29 @@ --- -title: P018.c -description: "C program source code for P018.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P018.c' +description: 'WAP to input the cost price and selling price and calculate profit, profit percentage, loss percentage or display the manage nither profit nor loss.' --- -# `P018.c` +# P018.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input the cost price and selling price and calculate profit, profit percentage, loss percentage or display the manage nither profit nor loss. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input the cost price and selling price and calculate profit, profit percentage, loss percentage or display the manage nither profit nor loss. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P018.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P018.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P018.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P018.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P018.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P018.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P018.c] #include <stdio.h> int main() { @@ -82,4 +47,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P019.md b/docs-new/semester_1/tuition-c/P019.md @@ -1,64 +1,29 @@ --- -title: P019.c -description: "C program source code for P019.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P019.c' +description: 'WAP to input the distance covered and calculate the amount to be paid by the passanger. Distance Rate =<5KM RS 90 next 10KM RS 20/KM next 10KM RS 10/KM more than 25KM RS 9/KM' --- -# `P019.c` +# P019.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input the distance covered and calculate the amount to be paid by the passanger. Distance Rate =<5KM RS 90 next 10KM RS 20/KM next 10KM RS 10/KM more than 25KM RS 9/KM +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input the distance covered and calculate the amount to be paid by the passanger. Distance Rate =&lt;5KM RS 90 next 10KM RS 20/KM next 10KM RS 10/KM more than 25KM RS 9/KM +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P019.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P019.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P019.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P019.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P019.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P019.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P019.c] #include <stdio.h> int main() { @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P020.md b/docs-new/semester_1/tuition-c/P020.md @@ -1,64 +1,29 @@ --- -title: P020.c -description: "C program source code for P020.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P020.c' +description: 'WAP to calculate and display the maturity amount taking the sum and number of days as input. No. of Days Rate of Interest Upto 180 days 5.5 % 181 to 364 days 7.5 % exact 365 days 9.0 % more than 365 days 8.5 %' --- -# `P020.c` +# P020.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate and display the maturity amount taking the sum and number of days as input. No. of Days Rate of Interest Upto 180 days 5.5 % 181 to 364 days 7.5 % exact 365 days 9.0 % more than 365 days 8.5 % +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate and display the maturity amount taking the sum and number of days as input. No. of Days Rate of Interest Upto 180 days 5.5 % 181 to 364 days 7.5 % exact 365 days 9.0 % more than 365 days 8.5 % +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P020.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P020.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P020.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P020.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P020.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P020.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P020.c] #include <stdio.h> int main() { @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P021.md b/docs-new/semester_1/tuition-c/P021.md @@ -1,64 +1,29 @@ --- -title: P021.c -description: "C program source code for P021.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P021.c' +description: 'WAP to input a positive number and check if it is a perfect square number or not.' --- -# `P021.c` +# P021.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input a positive number and check if it is a perfect square number or not. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input a positive number and check if it is a perfect square number or not. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P021.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P021.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P021.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P021.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P021.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P021.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P021.c] #include <stdio.h> #include <math.h> int main() @@ -76,4 +41,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P022.md b/docs-new/semester_1/tuition-c/P022.md @@ -1,64 +1,29 @@ --- -title: P022.c -description: "C program source code for P022.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P022.c' +description: 'WAP to find out smallest of three numbers without using if_else block.' --- -# `P022.c` +# P022.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to find out smallest of three numbers without using if_else block. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to find out smallest of three numbers without using if_else block. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P022.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P022.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P022.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P022.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P022.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P022.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P022.c] #include <stdio.h> int main() { @@ -71,4 +36,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P023.md b/docs-new/semester_1/tuition-c/P023.md @@ -1,64 +1,29 @@ --- -title: P023.c -description: "C program source code for P023.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P023.c' +description: 'WAP to input the total cost and compute the amount to be paid by the customer.' --- -# `P023.c` +# P023.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input the total cost and compute the amount to be paid by the customer. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input the total cost and compute the amount to be paid by the customer. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P023.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P023.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P023.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P023.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P023.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P023.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P023.c] #include <stdio.h> int main() { @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P024.md b/docs-new/semester_1/tuition-c/P024.md @@ -1,64 +1,29 @@ --- -title: P024.c -description: "C program source code for P024.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P024.c' +description: 'WAP to check whether a year is leapyear or not.' --- -# `P024.c` +# P024.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to check whether a year is leapyear or not. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to check whether a year is leapyear or not. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P024.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P024.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P024.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P024.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P024.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P024.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P024.c] #include <stdio.h> int main() { @@ -74,4 +39,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P025.md b/docs-new/semester_1/tuition-c/P025.md @@ -1,64 +1,29 @@ --- -title: P025.c -description: "C program source code for P025.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P025.c' +description: 'WAP to input the electricity unit consumed and calculate the total bill amount according to the given condition : for 1st 50 unit Rs. 0.50 per unit next 100 unit Rs. 0.75 per unit next 100 unit Rs. 1.20 per unit above 250 unit Rs. 1.50 per unit And additional charge of 20 percent is added to the bill.' --- -# `P025.c` +# P025.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input the electricity unit consumed and calculate the total bill amount according to the given condition : for 1st 50 unit Rs. 0.50 per unit next 100 unit Rs. 0.75 per unit next 100 unit Rs. 1.20 per unit above 250 unit Rs. 1.50 per unit And additional charge of 20 percent is added to the bill. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input the electricity unit consumed and calculate the total bill amount according to the given condition : for 1st 50 unit Rs. 0.50 per unit next 100 unit Rs. 0.75 per unit next 100 unit Rs. 1.20 per unit above 250 unit Rs. 1.50 per unit And additional charge of 20 percent is added to the bill. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P025.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P025.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P025.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P025.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P025.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P025.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P025.c] #include <stdio.h> int main() { @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P026.md b/docs-new/semester_1/tuition-c/P026.md @@ -1,64 +1,29 @@ --- -title: P026.c -description: "C program source code for P026.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P026.c' +description: 'WAP to input sum (p), rate of interest (r), time (t) and type of interest (''s'' for simple interest amd ''c'' for compound interest). Calculate and display the interest earned si = (p * r * t) / 100 compoundInterest = p * ((1 + r / 100)^t - 1)' --- -# `P026.c` +# P026.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input sum (p), rate of interest (r), time (t) and type of interest ('s' for simple interest amd 'c' for compound interest). Calculate and display the interest earned si = (p * r * t) / 100 compoundInterest = p * ((1 + r / 100)^t - 1) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input sum (p), rate of interest (r), time (t) and type of interest ('s' for simple interest amd 'c' for compound interest). Calculate and display the interest earned si = (p * r * t) / 100 compoundInterest = p * ((1 + r / 100)^t - 1) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P026.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P026.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P026.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P026.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P026.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P026.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P026.c] #include <stdio.h> #include <math.h> #include <ctype.h> @@ -88,4 +53,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P027.md b/docs-new/semester_1/tuition-c/P027.md @@ -1,65 +1,29 @@ --- -title: P027.c -description: "C program source code for P027.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P027.c' +description: 'Purchase Discount on Discount on Amount Laptop Desktop -------- ----------- ----------- Upto 20k 3.0% 5.0% 20001 - 50k 5.0% 7.5% 50001 - 75k 7.5% 10.5% more than 75k 10.0% 15.0% WAP to input amount of purchase and type of purchase (''L'' : laptop, ''D'' : desktop) and display the discount amount and the discounted price (Net Amount).' --- -# `P027.c` +# P027.c - -!!! abstract "Problem Statement" - Purchase Discount on Discount on Amount Laptop Desktop -------- ----------- ----------- Upto 20k 3.0% 5.0% 20001 - 50k 5.0% 7.5% 50001 - 75k 7.5% 10.5% more than 75k 10.0% 15.0% WAP to input amount of purchase and type of purchase ('L' : laptop, 'D' : desktop) and display the discount amount and the discounted price (Net Amount). - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P027.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P027.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Purchase Discount on Discount on Amount Laptop Desktop -------- ----------- ----------- Upto 20k 3.0% 5.0% 20001 - 50k 5.0% 7.5% 50001 - 75k 7.5% 10.5% more than 75k 10.0% 15.0% WAP to input amount of purchase and type of purchase ('L' : laptop, 'D' : desktop) and display the discount amount and the discounted price (Net Amount). +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P027.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P027.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P027.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P027.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P027.c] #include <stdio.h> #include <ctype.h> int main() @@ -114,4 +78,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P028.md b/docs-new/semester_1/tuition-c/P028.md @@ -1,64 +1,29 @@ --- -title: P028.c -description: "C program source code for P028.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P028.c' +description: 'WAP to calculate factorial of a number' --- -# `P028.c` +# P028.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate factorial of a number +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate factorial of a number +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P028.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P028.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P028.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P028.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P028.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P028.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P028.c] #include <stdio.h> int main() { @@ -88,4 +53,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P029.md b/docs-new/semester_1/tuition-c/P029.md @@ -1,64 +1,29 @@ --- -title: P029.c -description: "C program source code for P029.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P029.c' +description: 'WAP to perform addition of first n natural numbers. sum = 1 + 2 + 3 + ...' --- -# `P029.c` +# P029.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to perform addition of first n natural numbers. sum = 1 + 2 + 3 + ... +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to perform addition of first n natural numbers. sum = 1 + 2 + 3 + ... +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P029.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P029.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P029.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P029.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P029.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P029.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P029.c] #include <stdio.h> int main() { @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P030.md b/docs-new/semester_1/tuition-c/P030.md @@ -1,65 +1,29 @@ --- -title: P030.c -description: "C program source code for P030.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P030.c' +description: 'Display the first 15 terms of the series.' --- -# `P030.c` +# P030.c - -!!! abstract "Problem Statement" - Display the first 15 terms of the series. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P030.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P030.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Display the first 15 terms of the series. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P030.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P030.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P030.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P030.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P030.c] #include <stdio.h> #include <math.h> @@ -117,4 +81,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P031.md b/docs-new/semester_1/tuition-c/P031.md @@ -1,64 +1,29 @@ --- -title: P031.c -description: "C program source code for P031.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P031.c' +description: 'Find the sum of the series' --- -# `P031.c` +# P031.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Find the sum of the series +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Find the sum of the series +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P031.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P031.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P031.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P031.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P031.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P031.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P031.c] #include <stdio.h> #include <math.h> @@ -98,4 +63,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P032.md b/docs-new/semester_1/tuition-c/P032.md @@ -1,64 +1,29 @@ --- -title: P032.c -description: "C program source code for P032.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P032.c' +description: 'WAP to input a number and check whether it is a Niven number or not. (When a number is divisible by its sum of digit) e.g. : n = 126' --- -# `P032.c` +# P032.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input a number and check whether it is a Niven number or not. (When a number is divisible by its sum of digit) e.g. : n = 126 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input a number and check whether it is a Niven number or not. (When a number is divisible by its sum of digit) e.g. : n = 126 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P032.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P032.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P032.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P032.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P032.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P032.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P032.c] #include <stdio.h> int main() { @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P033.md b/docs-new/semester_1/tuition-c/P033.md @@ -1,64 +1,29 @@ --- -title: P033.c -description: "C program source code for P033.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P033.c' +description: 'WAP to calculate the sum of even digits and odd digits. Number will be provided by user.' --- -# `P033.c` +# P033.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to calculate the sum of even digits and odd digits. Number will be provided by user. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to calculate the sum of even digits and odd digits. Number will be provided by user. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P033.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P033.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P033.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P033.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P033.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P033.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P033.c] #include <stdio.h> int main() { @@ -80,4 +45,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P034.md b/docs-new/semester_1/tuition-c/P034.md @@ -1,64 +1,29 @@ --- -title: P034.c -description: "C program source code for P034.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P034.c' +description: 'Get sum of even position digit and odd position digit' --- -# `P034.c` +# P034.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Get sum of even position digit and odd position digit +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Get sum of even position digit and odd position digit +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P034.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P034.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P034.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P034.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P034.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P034.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P034.c] #include <stdio.h> int main() { @@ -81,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P035.md b/docs-new/semester_1/tuition-c/P035.md @@ -1,64 +1,29 @@ --- -title: P035.c -description: "C program source code for P035.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P035.c' +description: 'WAP to input an int number and display the product of the successors of even digits of the number entered by user.' --- -# `P035.c` +# P035.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to input an int number and display the product of the successors of even digits of the number entered by user. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to input an int number and display the product of the successors of even digits of the number entered by user. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P035.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P035.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P035.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P035.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P035.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P035.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P035.c] #include <stdio.h> #include <stdbool.h> int main() @@ -84,4 +49,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P036.md b/docs-new/semester_1/tuition-c/P036.md @@ -1,64 +1,29 @@ --- -title: P036.c -description: "C program source code for P036.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P036.c' +description: 'sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n' --- -# `P036.c` +# P036.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P036.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P036.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P036.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P036.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P036.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P036.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P036.c] #include <stdio.h> #include <math.h> @@ -74,4 +39,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P037.md b/docs-new/semester_1/tuition-c/P037.md @@ -1,64 +1,29 @@ --- -title: P037.c -description: "C program source code for P037.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P037.c' +description: 'sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n' --- -# `P037.c` +# P037.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P037.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P037.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P037.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P037.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P037.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P037.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P037.c] #include <stdio.h> int main() @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P038.md b/docs-new/semester_1/tuition-c/P038.md @@ -1,65 +1,29 @@ --- -title: P038.c -description: "C program source code for P038.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P038.c' +description: 'Write a program to check prime number' --- -# `P038.c` +# P038.c - -!!! abstract "Problem Statement" - Write a program to check prime number - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P038.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P038.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to check prime number +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P038.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P038.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P038.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P038.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P038.c] #include <stdio.h> #include <math.h> #include <stdbool.h> @@ -114,4 +78,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P039.md b/docs-new/semester_1/tuition-c/P039.md @@ -1,64 +1,29 @@ --- -title: P039.c -description: "C program source code for P039.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P039.c' +description: 'Write a program to print all the factors of a postive integer' --- -# `P039.c` +# P039.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to print all the factors of a postive integer +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to print all the factors of a postive integer +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P039.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P039.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P039.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P039.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P039.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P039.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P039.c] #include <stdio.h> int main() @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P040.md b/docs-new/semester_1/tuition-c/P040.md @@ -1,64 +1,29 @@ --- -title: P040.c -description: "C program source code for P040.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P040.c' +description: 'Write a program to calculate HCF of two positive number' --- -# `P040.c` +# P040.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to calculate HCF of two positive number +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to calculate HCF of two positive number +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P040.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P040.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P040.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P040.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P040.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P040.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P040.c] #include <stdio.h> int main() { @@ -75,4 +40,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P041.md b/docs-new/semester_1/tuition-c/P041.md @@ -1,64 +1,29 @@ --- -title: P041.c -description: "C program source code for P041.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P041.c' +description: 'Write a program to enter two numbers and check they are co-prime or not. co-prime when HCF = 1' --- -# `P041.c` +# P041.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to enter two numbers and check they are co-prime or not. co-prime when HCF = 1 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to enter two numbers and check they are co-prime or not. co-prime when HCF = 1 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P041.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P041.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P041.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P041.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P041.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P041.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P041.c] #include <stdio.h> int main() { @@ -84,4 +49,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P042.md b/docs-new/semester_1/tuition-c/P042.md @@ -1,65 +1,29 @@ --- -title: P042.c -description: "C program source code for P042.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P042.c' +description: 'Write a program to accept a number and check whether the number is twisted prime or not.' --- -# `P042.c` +# P042.c - -!!! abstract "Problem Statement" - Write a program to accept a number and check whether the number is twisted prime or not. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P042.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P042.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to accept a number and check whether the number is twisted prime or not. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P042.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P042.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P042.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P042.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P042.c] #include <stdio.h> #include <math.h> @@ -112,4 +76,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P043.md b/docs-new/semester_1/tuition-c/P043.md @@ -1,64 +1,29 @@ --- -title: P043.c -description: "C program source code for P043.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P043.c' +description: 'Write a program to check palindrome number.' --- -# `P043.c` +# P043.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to check palindrome number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to check palindrome number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P043.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P043.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P043.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P043.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P043.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P043.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P043.c] #include <stdio.h> int main() { @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P044.md b/docs-new/semester_1/tuition-c/P044.md @@ -1,65 +1,29 @@ --- -title: P044.c -description: "C program source code for P044.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P044.c' +description: 'Write a program to input a number and check whether the number is Pronic number or not. Pronic Number: The number which is the product of two numbers which is the product of two consecutive integer. Ex: 20 = 4 * 5' --- -# `P044.c` +# P044.c - -!!! abstract "Problem Statement" - Write a program to input a number and check whether the number is Pronic number or not. Pronic Number: The number which is the product of two numbers which is the product of two consecutive integer. Ex: 20 = 4 * 5 - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P044.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P044.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to input a number and check whether the number is Pronic number or not. Pronic Number: The number which is the product of two numbers which is the product of two consecutive integer. Ex: 20 = 4 * 5 +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P044.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P044.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P044.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P044.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P044.c] #include <stdio.h> #include <math.h> #include <stdbool.h> @@ -128,4 +92,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P045.md b/docs-new/semester_1/tuition-c/P045.md @@ -1,64 +1,29 @@ --- -title: P045.c -description: "C program source code for P045.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P045.c' +description: 'Make this pattern for input n. Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5' --- -# `P045.c` +# P045.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Make this pattern for input n. Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Make this pattern for input n. Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P045.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P045.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P045.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P045.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P045.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P045.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P045.c] #include <stdio.h> int main() @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P046.md b/docs-new/semester_1/tuition-c/P046.md @@ -1,64 +1,29 @@ --- -title: P046.c -description: "C program source code for P046.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P046.c' +description: 'Make this pattern for input n. Pattern : 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1' --- -# `P046.c` +# P046.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Make this pattern for input n. Pattern : 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Make this pattern for input n. Pattern : 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P046.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P046.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P046.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P046.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P046.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P046.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P046.c] #include <stdio.h> int main() @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P047.md b/docs-new/semester_1/tuition-c/P047.md @@ -1,64 +1,29 @@ --- -title: P047.c -description: "C program source code for P047.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P047.c' +description: 'Make this pattern for input n. Pattern : 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1' --- -# `P047.c` +# P047.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Make this pattern for input n. Pattern : 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Make this pattern for input n. Pattern : 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P047.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P047.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P047.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P047.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P047.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P047.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P047.c] #include <stdio.h> int main() @@ -77,4 +42,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P048.md b/docs-new/semester_1/tuition-c/P048.md @@ -1,64 +1,29 @@ --- -title: P048.c -description: "C program source code for P048.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P048.c' +description: 'Make this pattern for input n no of row. Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15' --- -# `P048.c` +# P048.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Make this pattern for input n no of row. Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Make this pattern for input n no of row. Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P048.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P048.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P048.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P048.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P048.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P048.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P048.c] #include <stdio.h> int main() @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P049.md b/docs-new/semester_1/tuition-c/P049.md @@ -1,64 +1,29 @@ --- -title: P049.c -description: "C program source code for P049.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P049.c' +description: 'Make this pattern for input n no of row. Pattern : # @ @ # # # @ @ @ @ # # # # #' --- -# `P049.c` +# P049.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Make this pattern for input n no of row. Pattern : # @ @ # # # @ @ @ @ # # # # # +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Make this pattern for input n no of row. Pattern : # @ @ # # # @ @ @ @ # # # # # +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P049.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P049.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P049.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P049.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P049.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P049.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P049.c] #include <stdio.h> int main() @@ -81,4 +46,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P050-SHORT.md b/docs-new/semester_1/tuition-c/P050-SHORT.md @@ -1,64 +1,29 @@ --- -title: P050-SHORT.c -description: "C program source code for P050-SHORT.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P050-SHORT.c' +description: 'Write a program to input a number and check whether it is Disarium Number or not. Note : A number is said to Disarium if sum of its digit powered by with their respective position is equal to the original number.' --- -# `P050-SHORT.c` +# P050-SHORT.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input a number and check whether it is Disarium Number or not. Note : A number is said to Disarium if sum of its digit powered by with their respective position is equal to the original number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input a number and check whether it is Disarium Number or not. Note : A number is said to Disarium if sum of its digit powered by with their respective position is equal to the original number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050-SHORT.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050-SHORT.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050-SHORT.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050-SHORT.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050-SHORT.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050-SHORT.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P050-SHORT.c] #include <stdio.h> #include <math.h> @@ -83,4 +48,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P050.md b/docs-new/semester_1/tuition-c/P050.md @@ -1,64 +1,29 @@ --- -title: P050.c -description: "C program source code for P050.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P050.c' +description: 'Write a program to input a number and check whether it is Disarium Number or not. Note : A number is said to Disarium if sum of its digit powered by with their respective position is equal to the original number.' --- -# `P050.c` +# P050.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input a number and check whether it is Disarium Number or not. Note : A number is said to Disarium if sum of its digit powered by with their respective position is equal to the original number. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input a number and check whether it is Disarium Number or not. Note : A number is said to Disarium if sum of its digit powered by with their respective position is equal to the original number. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P050.c] #include <stdio.h> #include <math.h> @@ -87,4 +52,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P051.md b/docs-new/semester_1/tuition-c/P051.md @@ -1,64 +1,29 @@ --- -title: P051.c -description: "C program source code for P051.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P051.c' +description: 'Write a program to input two number and check whether they are Amicable Pair or not Example : Sum of Proper Divisors of 220 (1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110) = 284 Sum of Proper Divisors of 284 (1, 2, 4, 71, 142) = 220' --- -# `P051.c` +# P051.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to input two number and check whether they are Amicable Pair or not Example : Sum of Proper Divisors of 220 (1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110) = 284 Sum of Proper Divisors of 284 (1, 2, 4, 71, 142) = 220 +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to input two number and check whether they are Amicable Pair or not Example : Sum of Proper Divisors of 220 (1, 2, 4, 5, 10, 11, 20, 22, 44, 55, 110) = 284 Sum of Proper Divisors of 284 (1, 2, 4, 71, 142) = 220 +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P051.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P051.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P051.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P051.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P051.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P051.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P051.c] #include <stdio.h> int main() @@ -79,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P052.md b/docs-new/semester_1/tuition-c/P052.md @@ -1,64 +1,29 @@ --- -title: P052.c -description: "C program source code for P052.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P052.c' +description: 'Print the sum of this series for upto n element. Series: 1 + (1 + 2) + (1 + 2 + 3) + (1 + 2 + 3 + 4) + ... + (1 + 2 + 3 + ... + n)' --- -# `P052.c` +# P052.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Print the sum of this series for upto n element. Series: 1 + (1 + 2) + (1 + 2 + 3) + (1 + 2 + 3 + 4) + ... + (1 + 2 + 3 + ... + n) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Print the sum of this series for upto n element. Series: 1 + (1 + 2) + (1 + 2 + 3) + (1 + 2 + 3 + 4) + ... + (1 + 2 + 3 + ... + n) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P052.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P052.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P052.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P052.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P052.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P052.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P052.c] #include <stdio.h> int main() @@ -75,4 +40,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P053.md b/docs-new/semester_1/tuition-c/P053.md @@ -1,65 +1,29 @@ --- -title: P053.c -description: "C program source code for P053.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P053.c' +description: 'Print all pattern' --- -# `P053.c` +# P053.c +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Print all pattern +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | -| **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P053.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P053.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P053.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P053.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> - -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +::: info Problem Statement +<b><i> +Print all pattern +</i></b> +::: ## Source Code -<div data-search-exclude="true"> -```c + +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P053.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P053.c) + +```c [P053.c] #include <stdio.h> int main() @@ -211,4 +175,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P054.md b/docs-new/semester_1/tuition-c/P054.md @@ -1,65 +1,29 @@ --- -title: P054.c -description: "C program source code for P054.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P054.c' +description: 'WAP to check Krishnamurty number using user defined methods/functions.' --- -# `P054.c` +# P054.c - -!!! abstract "Problem Statement" - WAP to check Krishnamurty number using user defined methods/functions. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P054.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P054.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +WAP to check Krishnamurty number using user defined methods/functions. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P054.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P054.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P054.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P054.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P054.c] #include <stdio.h> int fact(int); @@ -96,4 +60,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P055.md b/docs-new/semester_1/tuition-c/P055.md @@ -1,64 +1,29 @@ --- -title: P055.c -description: "C program source code for P055.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P055.c' +description: 'WAP to print n terms of Fibbonacci Series (Starting from term 0)' --- -# `P055.c` +# P055.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to print n terms of Fibbonacci Series (Starting from term 0) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to print n terms of Fibbonacci Series (Starting from term 0) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P055.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P055.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P055.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P055.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P055.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P055.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P055.c] #include <stdio.h> void printFibonacci(int); @@ -91,4 +56,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P056.md b/docs-new/semester_1/tuition-c/P056.md @@ -1,64 +1,29 @@ --- -title: P056.c -description: "C program source code for P056.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P056.c' +description: 'WAP to swap the value of a and b using user defined method.' --- -# `P056.c` +# P056.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to swap the value of a and b using user defined method. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to swap the value of a and b using user defined method. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P056.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P056.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P056.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P056.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P056.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P056.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P056.c] #include <stdio.h> void swap(int *a, int *b) @@ -79,4 +44,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P057.md b/docs-new/semester_1/tuition-c/P057.md @@ -1,64 +1,29 @@ --- -title: P057.c -description: "C program source code for P057.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P057.c' +description: 'WAP to display the series using user defined method. 0, 7, 26, 63, ... upto n terms using void series(int n)' --- -# `P057.c` +# P057.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to display the series using user defined method. 0, 7, 26, 63, ... upto n terms using void series(int n) +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to display the series using user defined method. 0, 7, 26, 63, ... upto n terms using void series(int n) +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P057.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P057.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P057.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P057.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P057.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P057.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P057.c] #include <stdio.h> void series(int n) @@ -78,4 +43,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P058.md b/docs-new/semester_1/tuition-c/P058.md @@ -1,64 +1,29 @@ --- -title: P058.c -description: "C program source code for P058.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P058.c' +description: 'WAP to display ASCII code of Alphabets (A - Z) using void displayASCII()' --- -# `P058.c` +# P058.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to display ASCII code of Alphabets (A - Z) using void displayASCII() +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to display ASCII code of Alphabets (A - Z) using void displayASCII() +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P058.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P058.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P058.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P058.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P058.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P058.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P058.c] #include <stdio.h> void displayASCII() @@ -75,4 +40,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P059.md b/docs-new/semester_1/tuition-c/P059.md @@ -1,65 +1,29 @@ --- -title: P059.c -description: "C program source code for P059.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P059.c' +description: 'Write a program to find the sum of array elements using following fuctions int array_sum(int a[], int n); void get_data(int a[], int n); void dispaly(int a[], int n);' --- -# `P059.c` +# P059.c - -!!! abstract "Problem Statement" - Write a program to find the sum of array elements using following fuctions int array_sum(int a[], int n); void get_data(int a[], int n); void dispaly(int a[], int n); - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 12 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P059.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P059.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to find the sum of array elements using following fuctions int array_sum(int a[], int n); void get_data(int a[], int n); void dispaly(int a[], int n); +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P059.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P059.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P059.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P059.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P059.c] #include <stdio.h> int array_sum(int[], int); @@ -113,4 +77,3 @@ int array_sum(int a[], int n) return sum; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P060.md b/docs-new/semester_1/tuition-c/P060.md @@ -1,65 +1,29 @@ --- -title: P060.c -description: "C program source code for P060.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P060.c' +description: 'write a C program to count the occurrences of a given element in an array using a user-defined function. Create a function int count_occurrences(int arr[], int n, int target) that countts how many times target appears in the array.' --- -# `P060.c` +# P060.c - -!!! abstract "Problem Statement" - write a C program to count the occurrences of a given element in an array using a user-defined function. Create a function int count_occurrences(int arr[], int n, int target) that countts how many times target appears in the array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 13 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P060.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P060.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +write a C program to count the occurrences of a given element in an array using a user-defined function. Create a function int count_occurrences(int arr[], int n, int target) that countts how many times target appears in the array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P060.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P060.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P060.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P060.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P060.c] #include <stdio.h> int count_occurrences(int[], int, int); @@ -109,4 +73,3 @@ int count_occurrences(int arr[], int n, int target) return count; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P061.md b/docs-new/semester_1/tuition-c/P061.md @@ -1,64 +1,29 @@ --- -title: P061.c -description: "C program source code for P061.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P061.c' +description: 'Write a C program to find the sum of even elements in an array using a user defined function. Define a functions int sumEven(int arr[], int n) that returns the sum of all even elements in the array.' --- -# `P061.c` +# P061.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 14 Dec 2025 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a C program to find the sum of even elements in an array using a user defined function. Define a functions int sumEven(int arr[], int n) that returns the sum of all even elements in the array. +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 14 Dec 2025 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a C program to find the sum of even elements in an array using a user defined function. Define a functions int sumEven(int arr[], int n) that returns the sum of all even elements in the array. +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P061.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P061.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P061.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P061.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P061.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P061.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P061.c] #include <stdio.h> void inputarr(int[], int); @@ -97,4 +62,3 @@ int sumEven(int arr[], int n) return sum_even; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P062.md b/docs-new/semester_1/tuition-c/P062.md @@ -1,65 +1,29 @@ --- -title: P062.c -description: "C program source code for P062.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P062.c' +description: 'Write a C program to find the smallest and largest in an array using user-defined functions. Define two functions int findSmallest(int arr[], int n) and int findLargest(int arr[], int n) that return the smallest and largest elements in an array, respectively.' --- -# `P062.c` +# P062.c - -!!! abstract "Problem Statement" - Write a C program to find the smallest and largest in an array using user-defined functions. Define two functions int findSmallest(int arr[], int n) and int findLargest(int arr[], int n) that return the smallest and largest elements in an array, respectively. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 16 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P062.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P062.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program to find the smallest and largest in an array using user-defined functions. Define two functions int findSmallest(int arr[], int n) and int findLargest(int arr[], int n) that return the smallest and largest elements in an array, respectively. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P062.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P062.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P062.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P062.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P062.c] #include <stdio.h> #include <stdlib.h> @@ -116,4 +80,3 @@ int findLargest(int arr[], int n) return largest; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P063.md b/docs-new/semester_1/tuition-c/P063.md @@ -1,65 +1,29 @@ --- -title: P063.c -description: "C program source code for P063.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P063.c' +description: 'Write a C program to find all Niven in an array. Define a user-defined function int isNiven(int num) that returns 1 if the numbers is a Niven number, otherwise returns 0. A Niven number (also known as a Harshad Number) is an integer that is divisible by the sum of its digits.' --- -# `P063.c` +# P063.c - -!!! abstract "Problem Statement" - Write a C program to find all Niven in an array. Define a user-defined function int isNiven(int num) that returns 1 if the numbers is a Niven number, otherwise returns 0. A Niven number (also known as a Harshad Number) is an integer that is divisible by the sum of its digits. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 16 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P063.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P063.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a C program to find all Niven in an array. Define a user-defined function int isNiven(int num) that returns 1 if the numbers is a Niven number, otherwise returns 0. A Niven number (also known as a Harshad Number) is an integer that is divisible by the sum of its digits. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P063.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P063.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P063.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P063.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P063.c] #include <stdio.h> #include <stdlib.h> @@ -109,4 +73,3 @@ int isNiven(int num) return num % sum == 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P064.md b/docs-new/semester_1/tuition-c/P064.md @@ -1,65 +1,29 @@ --- -title: P064.c -description: "C program source code for P064.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P064.c' +description: 'Write a program to merge two sorted integer arrays to form a single sorted array.' --- -# `P064.c` +# P064.c - -!!! abstract "Problem Statement" - Write a program to merge two sorted integer arrays to form a single sorted array. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 21 Dec 2025 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P064.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P064.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to merge two sorted integer arrays to form a single sorted array. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P064.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P064.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P064.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P064.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P064.c] #include <stdio.h> #include <stdlib.h> @@ -108,4 +72,3 @@ void merge(int a[], int n1, int b[], int n2) free(c); } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P065.md b/docs-new/semester_1/tuition-c/P065.md @@ -1,64 +1,29 @@ --- -title: P065.c -description: "C program source code for P065.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P065.c' +description: 'Write a program to reverse a string' --- -# `P065.c` +# P065.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 12 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program to reverse a string +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program to reverse a string +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P065.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P065.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P065.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P065.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P065.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P065.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P065.c] #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -92,4 +57,3 @@ void str_rev(char str[]) } } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P066.md b/docs-new/semester_1/tuition-c/P066.md @@ -1,64 +1,29 @@ --- -title: P066.c -description: "C program source code for P066.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P066.c' +description: 'WAP to find the length of a string using i) Library Method ii) User defined method' --- -# `P066.c` +# P066.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 14 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - WAP to find the length of a string using i) Library Method ii) User defined method +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 14 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +WAP to find the length of a string using i) Library Method ii) User defined method +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P066.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P066.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P066.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P066.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P066.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P066.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P066.c] #include <stdio.h> #include <string.h> @@ -84,4 +49,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P067.md b/docs-new/semester_1/tuition-c/P067.md @@ -1,64 +1,29 @@ --- -title: P067.c -description: "C program source code for P067.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P067.c' +description: 'Write a program using function which concatenates two string s1 and s2 in to a third string' --- -# `P067.c` +# P067.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 14 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a program using function which concatenates two string s1 and s2 in to a third string +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 14 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a program using function which concatenates two string s1 and s2 in to a third string +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P067.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P067.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P067.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P067.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P067.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P067.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P067.c] #include <stdio.h> void string_concat(char *s3, char s1[], char s2[]) @@ -89,4 +54,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P068.md b/docs-new/semester_1/tuition-c/P068.md @@ -1,64 +1,29 @@ --- -title: P068.c -description: "C program source code for P068.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P068.c' +description: 'Write a c program that perform the operation of strcmp()' --- -# `P068.c` +# P068.c +| Property | Details | +| :--- | :--- | +| **Author** | Amit Dutta (amitdutta4255@gmail.com) | +| **Date** | 14 Jan 2026 | +| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -!!! abstract "Problem Statement" - Write a c program that perform the operation of strcmp() +## Problem Statement -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | Date: 14 Jan 2026 | -| **License** | MIT | +::: info Problem Statement +<b><i> +Write a c program that perform the operation of strcmp() +</i></b> +::: -## Actions - -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P068.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P068.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> - -> You can print or save this file by opening Raw and using your browser. - -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P068.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P068.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P068.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P068.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P068.c] #include <stdio.h> #include <stdlib.h> @@ -98,4 +63,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P069.md b/docs-new/semester_1/tuition-c/P069.md @@ -1,65 +1,29 @@ --- -title: P069.c -description: "C program source code for P069.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P069.c' +description: 'Write a program using user defined method to implement the following JAVA PROG Mastery -> JPM java prog mastery -> JPM Acharya Prafulla Chandra -> JPM' --- -# `P069.c` +# P069.c - -!!! abstract "Problem Statement" - Write a program using user defined method to implement the following JAVA PROG Mastery -> JPM java prog mastery -> JPM Acharya Prafulla Chandra -> JPM - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 14 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P069.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P069.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program using user defined method to implement the following JAVA PROG Mastery -&gt; JPM java prog mastery -&gt; JPM Acharya Prafulla Chandra -&gt; JPM +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P069.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P069.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P069.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P069.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P069.c] #include <stdio.h> #include <ctype.h> @@ -115,4 +79,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_1/tuition-c/P070.md b/docs-new/semester_1/tuition-c/P070.md @@ -1,65 +1,29 @@ --- -title: P070.c -description: "C program source code for P070.c" -icon: lucide/file-code +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> P070.c' +description: 'Write a program to perform addition of two complex number having fields ''real'' and ''img'' of type integer.' --- -# `P070.c` +# P070.c - -!!! abstract "Problem Statement" - Write a program to perform addition of two complex number having fields 'real' and 'img' of type integer. - -## Metadata -| Property | Detail | -|---|---| -| **Author** | Amit Dutta <amitdutta4255@gmail.com> | +| Property | Details | +| :--- | :--- | +| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | | **Date** | 24 Jan 2026 | -| **License** | MIT License (See the LICENSE file for details) | - -## Actions +| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | -<div class="action-buttons-desktop"> -<a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P070.c" class="md-button" target="_blank" rel="noopener">Raw</a> -<a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P070.c" class="md-button" target="_blank" rel="noopener">View on GitHub</a> -<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button> -</div> +## Problem Statement -> You can print or save this file by opening Raw and using your browser. +::: info Problem Statement +<b><i> +Write a program to perform addition of two complex number having fields 'real' and 'img' of type integer. +</i></b> +::: -<div class="action-buttons-mobile"> -<button class="md-button" onclick="openActionSheet()">Actions</button> -</div> - -<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div> -<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions"> - <div class="dd-sheet-handle"></div> - <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div> - <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P070.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-file-code item-icon" aria-hidden="true"></span> - <span class="item-label">Raw</span> - </a> - <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P070.c" target="_blank" rel="noopener" onclick="closeActionSheet()"> - <span class="ti ti-brand-github item-icon" aria-hidden="true"></span> - <span class="item-label">View on GitHub</span> - </a> - <a href="javascript:void(0)" onclick="copyAndClose()"> - <span class="ti ti-copy item-icon" aria-hidden="true"></span> - <span class="item-label">Copy URL</span> - </a> -</div> +## Source Code -<script> -function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});} -function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);} -function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}} -function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);} -function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);} -</script> +[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P070.c) &nbsp; | &nbsp; [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P070.c) -## Source Code -<div data-search-exclude="true"> -```c +```c [P070.c] #include <stdio.h> struct complex @@ -104,4 +68,3 @@ int main() return 0; } ``` -</div> diff --git a/docs-new/semester_2/index.md b/docs-new/semester_2/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 2 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/semester_3/index.md b/docs-new/semester_3/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 3 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/semester_4/index.md b/docs-new/semester_4/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 4 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/semester_5/index.md b/docs-new/semester_5/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 5 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/semester_6/index.md b/docs-new/semester_6/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 6 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/semester_7/index.md b/docs-new/semester_7/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 7 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/semester_8/index.md b/docs-new/semester_8/index.md @@ -1,18 +1,17 @@ ---- -icon: lucide/component ---- +# Semester 8 -!!! warning "Semester Pending" - ## This folder is currently empty +::: warning Semester Pending +#### <b><u>This folder is currently empty</u></b> - I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). +I am still completing **Semester 1**. This repository is a live documentation of my progress through the BSc Computer Science program at [**Acharya Prafulla Chandra College (APC)**](https://apccollege.ac.in/). - **Current Activity:** +**Current Activity:** - - See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) - - Real-time updates as the academic session progresses. +- See active work in [**Semester 1**](https://github.com/notamitgamer/bsc/tree/main/semester_1) +- Real-time updates as the academic session progresses. - **Explore More:** +**Explore More:** - - Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) - - View my other repositories on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +- Check out my full project gallery on my [**Portfolio**](https://amit.is-a.dev/) +- View my other repositories on [**GitHub**](https://github.com/notamitgamer) +:::+ \ No newline at end of file diff --git a/docs-new/stylesheets/custom-colors.css b/docs-new/stylesheets/custom-colors.css @@ -1,5 +0,0 @@ -:root > * { - --md-primary-fg-color: #241A0D; - --md-primary-fg-color--light: #3a2b16; - --md-primary-fg-color--dark: #120d06; -}- \ No newline at end of file diff --git a/docs-new/stylesheets/extra.css b/docs-new/stylesheets/extra.css @@ -1,282 +0,0 @@ -/* ========================================= - QUICK ACTIONS DROPDOWN -========================================= */ - -.custom-dropdown { - position: relative; - display: flex; - justify-content: flex-end; - margin-bottom: 1.5rem; -} - -.custom-dropdown-btn { - display: flex; - align-items: center; - gap: 8px; - background-color: var(--md-default-bg-color); - color: var(--md-default-fg-color); - border: 1px solid var(--md-default-fg-color--light); - padding: 0.45rem 1rem; - border-radius: 8px; - font-family: inherit; - font-size: 0.85rem; - font-weight: 500; - cursor: pointer; - transition: border-color 0.15s ease, background-color 0.15s ease; -} - -.custom-dropdown-btn .chevron { - font-size: 14px; - opacity: 0.6; - transition: transform 0.25s ease; - display: inline-block; -} - -.custom-dropdown-btn:hover { - border-color: var(--md-primary-fg-color); - background-color: var(--md-default-bg-color--light); -} - -.custom-dropdown.open .custom-dropdown-btn { - border-color: var(--md-primary-fg-color); -} - -.custom-dropdown.open .custom-dropdown-btn .chevron { - transform: rotate(90deg); -} - -/* ---- Animated menu box (desktop) ---- */ -.custom-dropdown-content { - position: absolute; - top: calc(100% + 6px); - right: 0; - min-width: 220px; - background-color: var(--md-default-bg-color); - border: 1px solid var(--md-default-fg-color--light); - border-radius: 10px; - padding: 4px; - box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14); - z-index: 200; - flex-direction: column; - - /* Animation: hidden state */ - display: flex; - opacity: 0; - transform: translateY(-8px) scale(0.97); - transform-origin: top right; - pointer-events: none; - transition: opacity 0.2s ease, transform 0.2s ease; -} - -.custom-dropdown.open .custom-dropdown-content { - opacity: 1; - transform: translateY(0) scale(1); - pointer-events: all; -} - -/* Section labels */ -.dropdown-section-label { - font-size: 10px; - font-weight: 600; - letter-spacing: 0.06em; - text-transform: uppercase; - color: var(--md-default-fg-color--light); - padding: 6px 10px 2px; -} - -/* Individual items */ -.custom-dropdown-content a { - display: flex; - align-items: center; - gap: 10px; - padding: 8px 10px; - border-radius: 6px; - color: var(--md-default-fg-color); - text-decoration: none; - font-size: 0.82rem; - transition: background-color 0.12s ease; -} - -.custom-dropdown-content a .item-icon { - font-size: 16px; - opacity: 0.5; - flex-shrink: 0; - transition: opacity 0.12s ease; -} - -.custom-dropdown-content a .item-label { - flex: 1; -} - -.custom-dropdown-content a .item-badge { - font-size: 10px; - padding: 2px 6px; - border-radius: 4px; - background-color: var(--md-primary-fg-color--light); - color: var(--md-primary-fg-color); - font-weight: 600; -} - -.custom-dropdown-content a:hover { - background-color: var(--md-default-fg-color--lightest, rgba(0,0,0,0.06)); - color: var(--md-default-fg-color); -} - -.custom-dropdown-content a:hover .item-icon { - opacity: 1; -} - -/* Divider */ -.dropdown-divider { - height: 1px; - background-color: var(--md-default-fg-color--light); - margin: 4px 0; - opacity: 0.25; -} - -/* ========================================= - BOTTOM SHEET (mobile only) -========================================= */ - -/* Backdrop */ -.dd-backdrop { - display: none; - position: fixed; - inset: 0; - background: rgba(0, 0, 0, 0.35); - z-index: 300; - opacity: 0; - transition: opacity 0.25s ease; -} - -.dd-backdrop.visible { - opacity: 1; -} - -/* Sheet panel */ -.dd-sheet { - display: none; - position: fixed; - bottom: 0; - left: 0; - right: 0; - background-color: var(--md-default-bg-color); - border-radius: 16px 16px 0 0; - padding: 0 0 env(safe-area-inset-bottom, 12px); - z-index: 301; - transform: translateY(100%); - transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); - max-height: 80vh; - overflow-y: auto; -} - -.dd-sheet.visible { - transform: translateY(0); -} - -/* Sheet drag handle */ -.dd-sheet-handle { - width: 36px; - height: 4px; - background-color: var(--md-default-fg-color--light); - border-radius: 2px; - margin: 10px auto 4px; - opacity: 0.4; -} - -/* Sheet title row */ -.dd-sheet-title { - display: flex; - align-items: center; - gap: 8px; - padding: 8px 16px 6px; - font-size: 0.85rem; - font-weight: 600; - color: var(--md-default-fg-color); - border-bottom: 1px solid var(--md-default-fg-color--lightest, rgba(0,0,0,0.08)); - margin-bottom: 4px; -} - -/* Sheet section labels */ -.dd-sheet .dropdown-section-label { - padding: 8px 16px 2px; - font-size: 10px; -} - -/* Sheet items */ -.dd-sheet a { - display: flex; - align-items: center; - gap: 12px; - padding: 12px 16px; - color: var(--md-default-fg-color); - text-decoration: none; - font-size: 0.9rem; - transition: background-color 0.12s ease; -} - -.dd-sheet a .item-icon { - font-size: 18px; - opacity: 0.5; - flex-shrink: 0; -} - -.dd-sheet a .item-label { - flex: 1; -} - -.dd-sheet a .item-badge { - font-size: 10px; - padding: 2px 7px; - border-radius: 4px; - background-color: var(--md-primary-fg-color--light); - color: var(--md-primary-fg-color); - font-weight: 600; -} - -.dd-sheet a:hover, -.dd-sheet a:active { - background-color: var(--md-default-fg-color--lightest, rgba(0,0,0,0.06)); -} - -.dd-sheet .dropdown-divider { - margin: 4px 16px; -} - -/* Show/hide based on screen width */ -@media (max-width: 767px) { - .custom-dropdown-content { display: none !important; } - .dd-backdrop, - .dd-sheet { display: block; } -} - -@media (min-width: 768px) { - .dd-backdrop, - .dd-sheet { display: none !important; } -} - -/* ========================================= - FOOTER ALIGNMENT -========================================= */ - -.md-footer-meta__inner { - justify-content: center !important; -} - -.md-copyright { - text-align: center; - margin: auto; - line-height: 1.5; -} - -* { - -webkit-tap-highlight-color: transparent; -} - - -.action-buttons-mobile { display: none; } - -@media (max-width: 767px) { - .action-buttons-desktop { display: none; } - .action-buttons-mobile { display: block; } -}- \ No newline at end of file diff --git a/docs-new/stylesheets/logo.png b/docs-new/stylesheets/logo.png Binary files differ. diff --git a/docs-new/stylesheets/logo.svg b/docs-new/stylesheets/logo.svg @@ -1 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="#FF9F1C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-open-icon lucide-book-open"><path d="M12 7v14"/><path d="M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z"/></svg>- \ No newline at end of file diff --git a/docs-new/terms.md b/docs-new/terms.md @@ -1,27 +1,21 @@ --- -icon: lucide/file-text +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/></svg> Terms of Use' --- # Terms of Use These Terms govern your use of this website and all associated content, including source code, documentation, and generated materials. ---- - ## About This Project **BSc Code Index** is an open-source, publicly available collection of reference code and assignment solutions from a BSc (Honours) Computer Science degree at the **West Bengal State University (WBSU)**. It is maintained and published by **Amit Dutta** ([@notamitgamer](https://github.com/notamitgamer)) as a personal academic reference for students. The project is hosted on GitHub and freely accessible to anyone. It is not affiliated with or endorsed by WBSU or any academic institution. ---- - ## Acceptance of Terms By accessing or using this website, you confirm that you have read, understood, and agree to be bound by these Terms. If you do not agree, you must not use this website or its content. ---- - ## Author This project is created and maintained by: @@ -30,8 +24,6 @@ This project is created and maintained by: - **GitHub:** [github.com/notamitgamer](https://github.com/notamitgamer) - **Website:** [amit.is-a.dev](https://amit.is-a.dev) ---- - ## Ownership & Project Status This project is provided publicly for educational and reference purposes. The author reserves the right to: @@ -42,8 +34,6 @@ This project is provided publicly for educational and reference purposes. The au No guarantee is made regarding long-term availability or maintenance. ---- - ## Academic Integrity This repository is intended strictly for **learning and reference**. @@ -54,20 +44,14 @@ This repository is intended strictly for **learning and reference**. The author holds **no liability** for academic misconduct resulting from misuse of this content. ---- - ## License Unless otherwise stated, all code is licensed under the **MIT License**. You are free to use, modify, and distribute the code in accordance with its terms. ---- - ## Use at Your Own Risk All content is provided **"as-is" and "as available"** with no guarantees of correctness, completeness, reliability, or fitness for academic, professional, or production use. You use this website and its content entirely at your own risk. ---- - ## Disclaimer & Limitation of Liability To the fullest extent permitted by law: @@ -79,20 +63,14 @@ To the fullest extent permitted by law: - System failures - Incorrect results or outputs ---- - ## Content Accuracy While efforts are made to ensure correctness, content may contain errors or outdated information. No guarantee is made regarding accuracy or completeness. ---- - ## Indemnification You agree to indemnify and hold harmless the author from any claims, losses, liabilities, damages, or expenses (including legal fees) arising from your use of this service or your violation of these Terms. ---- - ## Data & Privacy This website: @@ -103,26 +81,18 @@ This website: External platforms such as GitHub or hosting providers may have their own privacy policies. ---- - ## Third-Party Services This website may rely on third-party platforms such as GitHub and hosting providers. The author is not responsible for their services, policies, or availability. ---- - ## Updates to Terms These Terms may be updated at any time. Changes take effect immediately upon posting. Your continued use of the website constitutes acceptance of the updated Terms. ---- - ## Governing Law These Terms are governed by the laws of **India**. Any disputes shall be subject to the exclusive jurisdiction of the **Barasat Court, West Bengal**. ---- - ## Contact For any questions regarding these Terms, you may reach out via: @@ -132,6 +102,4 @@ For any questions regarding these Terms, you may reach out via: - GitHub: [github.com/notamitgamer](https://github.com/notamitgamer) - Website: [amit.is-a.dev](https://amit.is-a.dev) ---- - *This project exists to support learning and exploration. Use it responsibly.* \ No newline at end of file diff --git a/md.py b/md.py @@ -1,44 +1,34 @@ import os import re -# --------------------------------------------------------------------------- -# Configuration -# --------------------------------------------------------------------------- - FILES_LIST = "list.txt" BSC_ROOT = "." DOCS_OUTPUT = "docs-new" RAW_BASE_URL = "https://raw.usercontent.amit.is-a.dev" -# Exact paths to the index.md files that should never be updated/overwritten. -# os.path.normpath ensures the paths perfectly match standard Windows path formatting. +# Protected paths that should never be overwritten PROTECTED_INDEX_FILES = { - os.path.normpath(os.path.join(DOCS_OUTPUT, f"semester_{i}", "index.md")) + os.path.normpath(os.path.join(DOCS_OUTPUT, f"semester_{i}", "index.md")) for i in range(1, 9) } -# Also protect the main root index.md PROTECTED_INDEX_FILES.add(os.path.normpath(os.path.join(DOCS_OUTPUT, "index.md"))) -# Folders to completely ignore during index generation -IGNORED_FOLDERS = {"stylesheets", "overrides", "assets"} - - -# --------------------------------------------------------------------------- -# Code stripping — remove strings and comments before keyword scanning -# --------------------------------------------------------------------------- - -def strip_c(code: str) -> str: - """Remove block comments, line comments, and string/char literals from C code.""" - code = re.sub(r'/\*.*?\*/', ' ', code, flags=re.DOTALL) - code = re.sub(r'//[^\n]*', ' ', code) - code = re.sub(r'"(?:[^"\\]|\\.)*"', '""', code) - code = re.sub(r"'(?:[^'\\]|\\.)*'", "''", code) - return code - - -# --------------------------------------------------------------------------- -# Block comment reader (C) -# --------------------------------------------------------------------------- +# Directories excluded from index generation +IGNORED_FOLDERS = {"stylesheets", "overrides", "assets", ".vitepress", "node_modules"} + +# Language config mapped by file extension +SUPPORTED_LANGS = { + '.c': {'label': 'C', 'fence': 'c', 'style': 'c'}, + '.cpp': {'label': 'C++', 'fence': 'cpp', 'style': 'c'}, + '.h': {'label': 'C Header', 'fence': 'c', 'style': 'c'}, + '.hpp': {'label': 'C++ Header', 'fence': 'cpp', 'style': 'c'}, + '.r': {'label': 'R', 'fence': 'r', 'style': 'hash'}, + '.py': {'label': 'Python', 'fence': 'python', 'style': 'hash'}, + '.java': {'label': 'Java', 'fence': 'java', 'style': 'c'}, + '.js': {'label': 'JavaScript', 'fence': 'javascript', 'style': 'c'}, + '.ts': {'label': 'TypeScript', 'fence': 'typescript', 'style': 'c'}, + '.sh': {'label': 'Bash', 'fence': 'bash', 'style': 'hash'}, +} def read_block_comment(lines, start): result = [] @@ -71,12 +61,7 @@ def read_block_comment(lines, start): return result, i - -# --------------------------------------------------------------------------- -# C file parser -# --------------------------------------------------------------------------- - -def parse_c_file(content): +def parse_c_style(content): lines = content.splitlines() n = len(lines) i = 0 @@ -85,46 +70,45 @@ def parse_c_file(content): while i < n and not lines[i].strip(): i += 1 - # First block comment: metadata + # Extract metadata block if i < n and lines[i].strip().startswith('/*'): block, i = read_block_comment(lines, i) for line in block: - if ':' in line: - key, _, val = line.partition(':') - key = key.strip().lower() - val = val.strip() - if 'author' in key: author = val - elif 'date' in key: date = val - elif 'repo' in key: repo = val - elif 'license' in key: license_str = val + # Handles both newline-per-field and pipe-separated formats + parts = [p.strip() for p in line.split('|')] + for part in parts: + if ':' in part: + key, _, val = part.partition(':') + key = key.strip().lower() + val = val.strip() + if 'author' in key: author = val + elif 'date' in key: date = val + elif 'repo' in key: repo = val + elif 'license' in key: license_str = val while i < n and not lines[i].strip(): i += 1 - # Second block comment: problem statement (if no #include inside) + # Extract problem statement block (ensures it's not the actual code starting) if i < n and lines[i].strip().startswith('/*'): peek_block, peek_i = read_block_comment(lines, i) block_text = ' '.join(peek_block) - if '#include' not in block_text: + if '#include' not in block_text and 'import ' not in block_text: problem_statement = ' '.join(p for p in peek_block if p).strip() i = peek_i - # Code starts at first #include + # Locate the beginning of actual source code code_start = None for j in list(range(i, n)) + list(range(0, i)): - if lines[j].strip().startswith('#include'): + line_strip = lines[j].strip() + if line_strip.startswith('#include') or line_strip.startswith('import '): code_start = j break code = '\n'.join(lines[code_start:]).strip() if code_start is not None else content.strip() return author, date, repo, license_str, problem_statement, code - -# --------------------------------------------------------------------------- -# R file parser -# --------------------------------------------------------------------------- - -def parse_r_file(content): +def parse_hash_style(content): lines = content.splitlines() n = len(lines) i = 0 @@ -133,7 +117,7 @@ def parse_r_file(content): while i < n and not lines[i].strip(): i += 1 - # First # comment block: metadata + # Extract metadata block meta_lines = [] while i < n and lines[i].strip().startswith('#'): meta_lines.append(lines[i].strip()[1:].strip()) @@ -146,14 +130,14 @@ def parse_r_file(content): key = key.strip().lower() val = val.strip() if 'author' in key: author = val - elif 'date' in key: date = val - elif 'repo' in key: repo = val - elif 'license' in key: license_str = val + elif 'date' in key: date = val + elif 'repo' in key: repo = val + elif 'license' in key: license_str = val while i < n and not lines[i].strip(): i += 1 - # Second # comment block: problem statement + # Extract problem statement block ps_lines = [] while i < n and lines[i].strip().startswith('#'): text = lines[i].strip()[1:].strip() @@ -167,140 +151,109 @@ def parse_r_file(content): code = content.strip() return author, date, repo, license_str, problem_statement, code +def build_md(filename, lang_label, fence_lang, author, date, repo, license_str, + problem_statement, code, raw_url, github_url): -# --------------------------------------------------------------------------- -# Markdown builder -# --------------------------------------------------------------------------- + def esc_yaml(s): + return s.replace("'", "''") + + def esc_html(s): + """Escape angle brackets to prevent Vue compilation errors in VitePress.""" + s = s.replace('&', '&amp;') + s = s.replace('<', '&lt;') + s = s.replace('>', '&gt;') + return s -def build_md(filename, lang, author, date, repo, license_str, - problem_statement, code, raw_url, github_url): + desc = problem_statement if problem_statement else f"{lang_label} program — {filename}" + icon_svg = '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg>' - out = [ + fm_lines = [ "---", - f"title: {filename}", - f'description: "{lang.upper()} program source code for {filename}"', - "icon: lucide/file-code", + f"title: '{icon_svg} {esc_yaml(filename)}'", + f"description: '{esc_yaml(desc)}'", "---", + ] + + body = [ "", - f"# `{filename}`", + f"# {filename}", "", ] + has_meta = any([author, date, license_str]) + if has_meta: + body.extend([ + "| Property | Details |", + "| :--- | :--- |" + ]) + + if author: + # Parse 'Name <email>' format into a markdown mailto link + email_match = re.search(r'(.*?)\s*<(.*?)>', author) + if email_match: + name = email_match.group(1).strip() + email = email_match.group(2).strip() + author_formatted = f"[{esc_html(name)}](mailto:{esc_html(email)})" + else: + author_formatted = esc_html(author) + body.append(f"| **Author** | {author_formatted} |") + + if date: + body.append(f"| **Date** | {esc_html(date)} |") + + if license_str: + body.append(f"| **License** | [{esc_html(license_str)}](https://github.com/notamitgamer/bsc/blob/main/LICENSE) |") + + body.append("") + if problem_statement: - indented = "\n".join(f" {l}" for l in problem_statement.splitlines()) - out += [ + body += [ + "## Problem Statement", "", - '!!! abstract "Problem Statement"', - indented, + "::: info Problem Statement", + "<b><i>", + esc_html(problem_statement), + "</i></b>", + ":::", "", ] - # Metadata table - meta_rows = [] - if author: meta_rows.append(f"| **Author** | {author} |") - if date: meta_rows.append(f"| **Date** | {date} |") - if license_str: meta_rows.append(f"| **License** | {license_str} |") - - if meta_rows: - out += [ - "## Metadata", - "| Property | Detail |", - "|---|---|", - *meta_rows, - "", - ] - - # Action buttons - # Action buttons - out += [ - "## Actions", - "", - '<div class="action-buttons-desktop">', - f'<a href="{raw_url}" class="md-button" target="_blank" rel="noopener">Raw</a>', - f'<a href="{github_url}" class="md-button" target="_blank" rel="noopener">View on GitHub</a>', - '<button class="md-button" type="button" onclick="copyPageUrl()">Copy URL</button>', - '</div>', - "", - "> You can print or save this file by opening Raw and using your browser.", - "", - '<div class="action-buttons-mobile">', - '<button class="md-button" onclick="openActionSheet()">Actions</button>', - '</div>', - "", - '<div class="dd-backdrop" id="actionBackdrop" onclick="closeActionSheet()"></div>', - '<div class="dd-sheet" id="actionSheet" role="dialog" aria-modal="true" aria-label="Actions">', - ' <div class="dd-sheet-handle"></div>', - ' <div class="dd-sheet-title"><span class="ti ti-bolt" aria-hidden="true"></span> Actions</div>', - f' <a href="{raw_url}" target="_blank" rel="noopener" onclick="closeActionSheet()">', - ' <span class="ti ti-file-code item-icon" aria-hidden="true"></span>', - ' <span class="item-label">Raw</span>', - ' </a>', - f' <a href="{github_url}" target="_blank" rel="noopener" onclick="closeActionSheet()">', - ' <span class="ti ti-brand-github item-icon" aria-hidden="true"></span>', - ' <span class="item-label">View on GitHub</span>', - ' </a>', - ' <a href="javascript:void(0)" onclick="copyAndClose()">', - ' <span class="ti ti-copy item-icon" aria-hidden="true"></span>', - ' <span class="item-label">Copy URL</span>', - ' </a>', - '</div>', + body += [ + "## Source Code", "", - '<script>', - 'function openActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.style.display="block";s.style.display="block";document.body.style.overflow="hidden";requestAnimationFrame(function(){b.classList.add("visible");s.classList.add("visible");});}', - 'function closeActionSheet(){var b=document.getElementById("actionBackdrop"),s=document.getElementById("actionSheet");b.classList.remove("visible");s.classList.remove("visible");document.body.style.overflow="";setTimeout(function(){b.style.display="none";s.style.display="none";},300);}', - 'function copyPageUrl(){var btn=document.querySelector(".action-buttons-desktop .md-button:last-child");try{navigator.clipboard.writeText(window.location.href).then(function(){if(btn){var o=btn.textContent;btn.textContent="Copied!";setTimeout(function(){btn.textContent=o;},1800);}}).catch(function(){fallbackCopy();});}catch(e){fallbackCopy();}}', - 'function fallbackCopy(){var ta=document.createElement("textarea");ta.value=window.location.href;ta.style.position="fixed";ta.style.opacity="0";document.body.appendChild(ta);ta.focus();ta.select();try{document.execCommand("copy");}catch(e){}document.body.removeChild(ta);}', - 'function copyAndClose(){closeActionSheet();setTimeout(function(){copyPageUrl();},320);}', - '</script>', + f"[View on GitHub]({github_url}) &nbsp; | &nbsp; [Download Raw]({raw_url})", "", - ] - - # Source code - fence_lang = "c" if lang == "c" else "r" - out += [ - "## Source Code", - '<div data-search-exclude="true">', - f"```{fence_lang}", + f"```{fence_lang} [{filename}]", code, "```", - "</div>", - "", + "" ] - return '\n'.join(out) - - -# --------------------------------------------------------------------------- -# Folder index generator -# --------------------------------------------------------------------------- + return '\n'.join(fm_lines + body) def _get_md_title(md_path: str) -> str: - """Read the title from a generated markdown file's front matter.""" try: with open(md_path, encoding='utf-8') as f: content = f.read() - m = re.search(r'^title:\s*(.+)$', content, re.MULTILINE) + # Extracts actual title text, ignoring prepended SVGs or icons + m = re.search(r'^title:\s*\'(?:.*?</svg>\s*)?(.+)\'$', content, re.MULTILINE) if m: return m.group(1).strip() except OSError: pass return os.path.splitext(os.path.basename(md_path))[0] - def create_folder_indexes(docs_root): for root, dirs, files in os.walk(docs_root): - # Do not traverse into ignored folders, and don't list them in parent indexes dirs[:] = [d for d in dirs if d not in IGNORED_FOLDERS] folder_name = os.path.basename(root) - - # Skip generating index for these folders if they are somehow reached + if folder_name in IGNORED_FOLDERS: continue index_path = os.path.normpath(os.path.join(root, 'index.md')) - # Only skip if this exact index.md file is in our protected list AND already exists if index_path in PROTECTED_INDEX_FILES and os.path.exists(index_path): continue @@ -338,11 +291,6 @@ def create_folder_indexes(docs_root): f.write(f"| {idx} | `{src_name}` | [View Code]({md_file}) |\n") f.write("\n") - -# --------------------------------------------------------------------------- -# Main -# --------------------------------------------------------------------------- - def main(): with open(FILES_LIST, 'r', encoding='utf-8') as f: file_paths = [line.strip() for line in f if line.strip()] @@ -353,11 +301,13 @@ def main(): full_path = os.path.normpath(full_path) ext = os.path.splitext(full_path)[1].lower() - if ext not in {'.c', '.r'}: + if ext not in SUPPORTED_LANGS: print(f"SKIP (unsupported extension): {full_path}") skipped += 1 continue + lang_info = SUPPORTED_LANGS[ext] + try: rel_path = os.path.relpath(full_path, BSC_ROOT) except ValueError: @@ -378,23 +328,20 @@ def main(): continue filename = os.path.basename(full_path) - lang = "r" if ext == ".r" else "c" - if lang == "c": - author, date, repo, license_str, problem_statement, code = parse_c_file(content) + if lang_info['style'] == 'c': + author, date, repo, license_str, problem_statement, code = parse_c_style(content) else: - author, date, repo, license_str, problem_statement, code = parse_r_file(content) + author, date, repo, license_str, problem_statement, code = parse_hash_style(content) md_content = build_md( - filename, lang, author, date, repo, license_str, + filename, lang_info['label'], lang_info['fence'], author, date, repo, license_str, problem_statement, code, raw_url, github_url, ) md_rel = os.path.splitext(rel_path)[0] + '.md' md_out = os.path.normpath(os.path.join(DOCS_OUTPUT, md_rel)) - # Prevent source files (e.g., an index.c file) from inadvertently generating - # an output that overwrites your protected semester index.md files. if md_out in PROTECTED_INDEX_FILES and os.path.exists(md_out): print(f"SKIP (Protected Index File): {md_out}") skipped += 1 @@ -412,6 +359,5 @@ def main(): create_folder_indexes(DOCS_OUTPUT) print("Folder indexes created.") - if __name__ == "__main__": - main() + main()+ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json @@ -0,0 +1,2748 @@ +{ + "name": "bsc", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "vitepress": "^1.6.4", + "vitepress-sidebar": "^1.36.1" + } + }, + "node_modules/@algolia/abtesting": { + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/@algolia/abtesting/-/abtesting-1.19.0.tgz", + "integrity": "sha512-Lhnez3hhXHk25lfxLAMxvkP4fmN3+1RgADhD2ssMDBYuAsDVReeyP+3SGRx+ntq8ijMrLqUyfvO72TB6jsTteQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/autocomplete-core": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-core/-/autocomplete-core-1.17.7.tgz", + "integrity": "sha512-BjiPOW6ks90UKl7TwMv7oNQMnzU+t/wk9mgIDi6b1tXpUek7MW0lbNOUHpvam9pe3lVCf4xPFT+lK7s+e+fs7Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-plugin-algolia-insights": "1.17.7", + "@algolia/autocomplete-shared": "1.17.7" + } + }, + "node_modules/@algolia/autocomplete-plugin-algolia-insights": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-plugin-algolia-insights/-/autocomplete-plugin-algolia-insights-1.17.7.tgz", + "integrity": "sha512-Jca5Ude6yUOuyzjnz57og7Et3aXjbwCSDf/8onLHSQgw1qW3ALl9mrMWaXb5FmPVkV3EtkD2F/+NkT6VHyPu9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-shared": "1.17.7" + }, + "peerDependencies": { + "search-insights": ">= 1 < 3" + } + }, + "node_modules/@algolia/autocomplete-preset-algolia": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-preset-algolia/-/autocomplete-preset-algolia-1.17.7.tgz", + "integrity": "sha512-ggOQ950+nwbWROq2MOCIL71RE0DdQZsceqrg32UqnhDz8FlO9rL8ONHNsI2R1MH0tkgVIDKI/D0sMiUchsFdWA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-shared": "1.17.7" + }, + "peerDependencies": { + "@algolia/client-search": ">= 4.9.1 < 6", + "algoliasearch": ">= 4.9.1 < 6" + } + }, + "node_modules/@algolia/autocomplete-shared": { + "version": "1.17.7", + "resolved": "https://registry.npmjs.org/@algolia/autocomplete-shared/-/autocomplete-shared-1.17.7.tgz", + "integrity": "sha512-o/1Vurr42U/qskRSuhBH+VKxMvkkUVTLU6WZQr+L5lGZZLYWyhdzWjW0iGXY7EkwRTjBqvN2EsR81yCTGV/kmg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@algolia/client-search": ">= 4.9.1 < 6", + "algoliasearch": ">= 4.9.1 < 6" + } + }, + "node_modules/@algolia/client-abtesting": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-abtesting/-/client-abtesting-5.53.0.tgz", + "integrity": "sha512-0ZjA5Hcmaoz5Lj6OG0zhfIyeqzJZnLW2CRJA1W17UwMFGRtZAJ9yJKRvPEDA6gkpsIoQxORTSW6sWFiuYncPNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-analytics": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-analytics/-/client-analytics-5.53.0.tgz", + "integrity": "sha512-kWNodP75iiEaOtemC9F/hlxNBG5E2QUjN1BusnE6m2b4l7Qh/BUO3fGCVsmKJI65VO4VKGGmT43ICvHtTcJ2JQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-common": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-common/-/client-common-5.53.0.tgz", + "integrity": "sha512-YPN45TXD9Wrse185t/Ta7nktZsqpv97oOjCzp2sblHnCL6rBc9TDeJAg1IGl2UpdwnSD05Zu/5wLB4watOUMyg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-insights": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-insights/-/client-insights-5.53.0.tgz", + "integrity": "sha512-qAcYTDJE6m924FDDUQvdD6vh7DYaqOeSpFS74IP37/JRV0v4cGBauyxTF2WzDnokUylQDbqreoFIJZfg0Fitmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-personalization": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-personalization/-/client-personalization-5.53.0.tgz", + "integrity": "sha512-fQaY+DkSJOpuUVUe8MQTwrdiKAqkJGhpDarB08duBn/sUv7Bkib6MDRQauCcWTWTe4HIW+EbwQP9R4kci1V/Yw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-query-suggestions": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-query-suggestions/-/client-query-suggestions-5.53.0.tgz", + "integrity": "sha512-o72tsiEZGfeS/dxL9IADfzcZWGEwKDEe5CvtrBuT//3JR+SHuTtHRI2ZTf7D7bcKagcbojvO8hnkHdfoakSlYg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/client-search": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/client-search/-/client-search-5.53.0.tgz", + "integrity": "sha512-Ds16IyPm/dNJPCU8OzApo2gwGrgWT5BYHhE3NFwZbpCveqyvPDB9sZDDkJ5DsdOGT2aC+R3i0/M1OVXF2qdgPg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/ingestion": { + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/@algolia/ingestion/-/ingestion-1.53.0.tgz", + "integrity": "sha512-oNbT6z4NwD8Pou9VPINGlN/tlG1afESh2EbxqnP6rwl95xKVD/Zlciis1PpNeO/9U/rrajc1+7DcfKi03tX1KQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/monitoring": { + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/@algolia/monitoring/-/monitoring-1.53.0.tgz", + "integrity": "sha512-G+KZb/yd+qAOFn/cEvTGeLxQm8aP3a0od50l3z/ylccY+/o4YG3TNcjU1tFQHW4mXC137GPyR7W70R0kRQDLnA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/recommend": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/recommend/-/recommend-5.53.0.tgz", + "integrity": "sha512-6aVfYd55Un6IUgPLbo84WfgFZlS3L0vA1ttzXL5vahHewUJ8jYgd89TzlWRTeej7w70mb9RWsVlFYGmJ/diQww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-browser-xhr": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-browser-xhr/-/requester-browser-xhr-5.53.0.tgz", + "integrity": "sha512-ke27DqgzCOlt+RbeEdCxtXxMQOnAOi8ujr2wid0DmDKzR95Kw/f9sBsuhBxtjevCqJRJszfRTLY0B1pbO6IhkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-fetch": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-fetch/-/requester-fetch-5.53.0.tgz", + "integrity": "sha512-GngiOqt2Gq4oLno6yXQVj9om+qSO9SWAoduoTOEg79dKZ62brB8OOIvSJG/vDNoanYi6a7Al9uDZwXvi+bcVTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@algolia/requester-node-http": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/@algolia/requester-node-http/-/requester-node-http-5.53.0.tgz", + "integrity": "sha512-6mF9LZMUk0QqWvrnxkxBqhswwz6Xfiwy6/gmTzL5HrlhdVG3ITAqGV2k3XmVThP1h0Ulc3VQwiNCD7/Nr4JNlQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/client-common": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", + "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", + "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@docsearch/css": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@docsearch/css/-/css-3.8.2.tgz", + "integrity": "sha512-y05ayQFyUmCXze79+56v/4HpycYF3uFqB78pLPrSV5ZKAlDuIAAJNhaRi8tTdRNXh05yxX/TyNnzD6LwSM89vQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@docsearch/js": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@docsearch/js/-/js-3.8.2.tgz", + "integrity": "sha512-Q5wY66qHn0SwA7Taa0aDbHiJvaFJLOJyHmooQ7y8hlwwQLQ/5WwCcoX0g7ii04Qi2DJlHsd0XXzJ8Ypw9+9YmQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@docsearch/react": "3.8.2", + "preact": "^10.0.0" + } + }, + "node_modules/@docsearch/react": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/@docsearch/react/-/react-3.8.2.tgz", + "integrity": "sha512-xCRrJQlTt8N9GU0DG4ptwHRkfnSnD/YpdeaXe02iKfqs97TkZJv60yE+1eq/tjPcVnTW8dP5qLP7itifFVV5eg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/autocomplete-core": "1.17.7", + "@algolia/autocomplete-preset-algolia": "1.17.7", + "@docsearch/css": "3.8.2", + "algoliasearch": "^5.14.2" + }, + "peerDependencies": { + "@types/react": ">= 16.8.0 < 19.0.0", + "react": ">= 16.8.0 < 19.0.0", + "react-dom": ">= 16.8.0 < 19.0.0", + "search-insights": ">= 1 < 3" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "search-insights": { + "optional": true + } + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@iconify-json/simple-icons": { + "version": "1.2.85", + "resolved": "https://registry.npmjs.org/@iconify-json/simple-icons/-/simple-icons-1.2.85.tgz", + "integrity": "sha512-Hp5LXvd3LRk+e+1558wtonA7c1Z0/Phmi7xCqpgtb8bs8cuyGnP34GDbt5uhhUXxKlzacnnhAcXgcDxe9bUa1w==", + "dev": true, + "license": "CC0-1.0", + "dependencies": { + "@iconify/types": "*" + } + }, + "node_modules/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.1.tgz", + "integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.1.tgz", + "integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.1.tgz", + "integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.1.tgz", + "integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.1.tgz", + "integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.1.tgz", + "integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.1.tgz", + "integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.1.tgz", + "integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.1.tgz", + "integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.1.tgz", + "integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.1.tgz", + "integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.1.tgz", + "integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.1.tgz", + "integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.1.tgz", + "integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.1.tgz", + "integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.1.tgz", + "integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.1.tgz", + "integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.1.tgz", + "integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.1.tgz", + "integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.1.tgz", + "integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.1.tgz", + "integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.1.tgz", + "integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.1.tgz", + "integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.1.tgz", + "integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.1.tgz", + "integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@shikijs/core": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-2.5.0.tgz", + "integrity": "sha512-uu/8RExTKtavlpH7XqnVYBrfBkUc20ngXiX9NSrBhOVZYv/7XQRKUyhtkeflY5QsxC0GbJThCerruZfsUaSldg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-javascript": "2.5.0", + "@shikijs/engine-oniguruma": "2.5.0", + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4", + "hast-util-to-html": "^9.0.4" + } + }, + "node_modules/@shikijs/engine-javascript": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-2.5.0.tgz", + "integrity": "sha512-VjnOpnQf8WuCEZtNUdjjwGUbtAVKuZkVQ/5cHy/tojVVRIRtlWMYVjyWhxOmIq05AlSOv72z7hRNRGVBgQOl0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2", + "oniguruma-to-es": "^3.1.0" + } + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-2.5.0.tgz", + "integrity": "sha512-pGd1wRATzbo/uatrCIILlAdFVKdxImWJGQ5rFiB5VZi2ve5xj3Ax9jny8QvkaV93btQEwR/rSz5ERFpC5mKNIw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2" + } + }, + "node_modules/@shikijs/langs": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz", + "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0" + } + }, + "node_modules/@shikijs/themes": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz", + "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "2.5.0" + } + }, + "node_modules/@shikijs/transformers": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/transformers/-/transformers-2.5.0.tgz", + "integrity": "sha512-SI494W5X60CaUwgi8u4q4m4s3YAFSxln3tzNjOSYqq54wlVgz0/NbbXEb3mdLbqMBztcmS7bVTaEd2w0qMmfeg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/core": "2.5.0", + "@shikijs/types": "2.5.0" + } + }, + "node_modules/@shikijs/types": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-2.5.0.tgz", + "integrity": "sha512-ygl5yhxki9ZLNuNpPitBWvcy9fsSKKaRuO4BAlMyagszQidxcpLAr0qiW/q43DtSIDxO6hEbtYLiFZNXO/hdGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/estree": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/markdown-it": { + "version": "14.1.2", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz", + "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/linkify-it": "^5", + "@types/mdurl": "^2" + } + }, + "node_modules/@types/mdast": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz", + "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/web-bluetooth": { + "version": "0.0.21", + "resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz", + "integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.1.tgz", + "integrity": "sha512-mUFwbeTqrVgDQxFveS+df2yfap6iuP20NAKAsBt5jDEoOTDew+zwLAOilHCeQJOVSvmgCX4ogqIrA0mnyr08yQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz", + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "vite": "^5.0.0 || ^6.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.35.tgz", + "integrity": "sha512-BUmHaR1J+O+CKZ9uJucdVTEr1LHsdyvv7vG3eNRhK3CczEHeMd/LtsHAuD7PbrxvI2envCY2v7HI1vC1aBRzKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.3", + "@vue/shared": "3.5.35", + "entities": "^7.0.1", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.35.tgz", + "integrity": "sha512-k+bprkXxuqhVajgTx5mUHuir7TwQzUKOWR40ng1ncAqQRPnrLngGGgqVEEhOnTMlc8btHYVKmrP8s5Qyg0hvYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.35", + "@vue/shared": "3.5.35" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.35.tgz", + "integrity": "sha512-G5VPMcXTSywXBgtFOZOnHKBxKSrwXUcvY1iaF5/hRcy7t0J6CH/d8ha9F4nzi00Fax1eLV0QHM7v4mQu68jydw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.3", + "@vue/compiler-core": "3.5.35", + "@vue/compiler-dom": "3.5.35", + "@vue/compiler-ssr": "3.5.35", + "@vue/shared": "3.5.35", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.15", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.35.tgz", + "integrity": "sha512-rGhAeXgdM7/ffTJGXT69rCCdTmjDewnFuUZfBQQHTdcEBeWdT5HCGY60y2ytLJr9/Dsu7IntUi5z/w0h6Rjnzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.35", + "@vue/shared": "3.5.35" + } + }, + "node_modules/@vue/devtools-api": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-7.7.9.tgz", + "integrity": "sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-kit": "^7.7.9" + } + }, + "node_modules/@vue/devtools-kit": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-kit/-/devtools-kit-7.7.9.tgz", + "integrity": "sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/devtools-shared": "^7.7.9", + "birpc": "^2.3.0", + "hookable": "^5.5.3", + "mitt": "^3.0.1", + "perfect-debounce": "^1.0.0", + "speakingurl": "^14.0.1", + "superjson": "^2.2.2" + } + }, + "node_modules/@vue/devtools-shared": { + "version": "7.7.9", + "resolved": "https://registry.npmjs.org/@vue/devtools-shared/-/devtools-shared-7.7.9.tgz", + "integrity": "sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==", + "dev": true, + "license": "MIT", + "dependencies": { + "rfdc": "^1.4.1" + } + }, + "node_modules/@vue/reactivity": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.35.tgz", + "integrity": "sha512-tVc+SsHConvh/Lz64qq1pP3rYArBmK42xonovEcxY74SQtvctZodG/zhq54P5dr38cVuw25d27cPNRdlMidpGQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.35" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.35.tgz", + "integrity": "sha512-A/xFNX9loIcWDygeQuNCfKuh0CoYBzxhqEMNah5TSFg9Z53DrFYEN2qi5CU9necjM1OWYegYREUTHmXTmhfXtg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.35", + "@vue/shared": "3.5.35" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.35.tgz", + "integrity": "sha512-odrJ1C391dbGnyDRh8U+rnP7J2amIEzfmRk5vXy7xi3aZhEXofTvpi0T4HJb6jlNqQZTNPR5MPHSB3RHNkIORA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.35", + "@vue/runtime-core": "3.5.35", + "@vue/shared": "3.5.35", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.35.tgz", + "integrity": "sha512-NkebSOYdB97wi8OQcO3HqzZSlymJi/aWsN/7h74OSVhRTm6qGs3Jp3e0rCXynmWwSlKeRrnlIug+ilYoHBmQDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.35", + "@vue/shared": "3.5.35" + }, + "peerDependencies": { + "vue": "3.5.35" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.35.tgz", + "integrity": "sha512-zSbjL7gRXwks2ZQLRGCajBtBXEOXW9Ddhn/HvSdrGkE2dqGnumzW8XtusRrxrE9LvqtiqDXQ+A60Hp6mvdYxfA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@vueuse/core": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/core/-/core-12.8.2.tgz", + "integrity": "sha512-HbvCmZdzAu3VGi/pWYm5Ut+Kd9mn1ZHnn4L5G8kOQTPs/IwIAmJoBrmYk2ckLArgMXZj0AW3n5CAejLUO+PhdQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/web-bluetooth": "^0.0.21", + "@vueuse/metadata": "12.8.2", + "@vueuse/shared": "12.8.2", + "vue": "^3.5.13" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/integrations": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/integrations/-/integrations-12.8.2.tgz", + "integrity": "sha512-fbGYivgK5uBTRt7p5F3zy6VrETlV9RtZjBqd1/HxGdjdckBgBM4ugP8LHpjolqTj14TXTxSK1ZfgPbHYyGuH7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vueuse/core": "12.8.2", + "@vueuse/shared": "12.8.2", + "vue": "^3.5.13" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "async-validator": "^4", + "axios": "^1", + "change-case": "^5", + "drauu": "^0.4", + "focus-trap": "^7", + "fuse.js": "^7", + "idb-keyval": "^6", + "jwt-decode": "^4", + "nprogress": "^0.2", + "qrcode": "^1.5", + "sortablejs": "^1", + "universal-cookie": "^7" + }, + "peerDependenciesMeta": { + "async-validator": { + "optional": true + }, + "axios": { + "optional": true + }, + "change-case": { + "optional": true + }, + "drauu": { + "optional": true + }, + "focus-trap": { + "optional": true + }, + "fuse.js": { + "optional": true + }, + "idb-keyval": { + "optional": true + }, + "jwt-decode": { + "optional": true + }, + "nprogress": { + "optional": true + }, + "qrcode": { + "optional": true + }, + "sortablejs": { + "optional": true + }, + "universal-cookie": { + "optional": true + } + } + }, + "node_modules/@vueuse/metadata": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-12.8.2.tgz", + "integrity": "sha512-rAyLGEuoBJ/Il5AmFHiziCPdQzRt88VxR+Y/A/QhJ1EWtWqPBBAxTAFaSkviwEuOEZNtW8pvkPgoCZQ+HxqW1A==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/@vueuse/shared": { + "version": "12.8.2", + "resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-12.8.2.tgz", + "integrity": "sha512-dznP38YzxZoNloI0qpEfpkms8knDtaoQ6Y/sfS0L7Yki4zh40LFHEhur0odJC6xTHG5dxWVPiUWBXn+wCG2s5w==", + "dev": true, + "license": "MIT", + "dependencies": { + "vue": "^3.5.13" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/algoliasearch": { + "version": "5.53.0", + "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-5.53.0.tgz", + "integrity": "sha512-OGW1q6b91CRSSeiOnM8LxuR5NYJ2esvw66jUZ4IIvdv+ItNkx3pwLuyR+jaCdbGee4ov5WgUnyPryyh11xvByQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@algolia/abtesting": "1.19.0", + "@algolia/client-abtesting": "5.53.0", + "@algolia/client-analytics": "5.53.0", + "@algolia/client-common": "5.53.0", + "@algolia/client-insights": "5.53.0", + "@algolia/client-personalization": "5.53.0", + "@algolia/client-query-suggestions": "5.53.0", + "@algolia/client-search": "5.53.0", + "@algolia/ingestion": "1.53.0", + "@algolia/monitoring": "1.53.0", + "@algolia/recommend": "5.53.0", + "@algolia/requester-browser-xhr": "5.53.0", + "@algolia/requester-fetch": "5.53.0", + "@algolia/requester-node-http": "5.53.0" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/birpc": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/birpc/-/birpc-2.9.0.tgz", + "integrity": "sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.6", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", + "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/ccount": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz", + "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-html4": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz", + "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/character-entities-legacy": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz", + "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/comma-separated-tokens": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz", + "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/copy-anything": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-4.0.5.tgz", + "integrity": "sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-what": "^5.2.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/devlop": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz", + "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/emoji-regex-xs": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex-xs/-/emoji-regex-xs-1.0.0.tgz", + "integrity": "sha512-LRlerrMYoIDrT6jgpeZ2YYl/L8EulRTt5hQcYjy5AInh7HWXKimpqx68aknBFpGL2+/IcogTcaydJEgaTmOpDg==", + "dev": true, + "license": "MIT" + }, + "node_modules/entities": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz", + "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extendable": "^0.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/focus-trap": { + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.8.0.tgz", + "integrity": "sha512-/yNdlIkpWbM0ptxno3ONTuf+2g318kh2ez3KSeZN5dZ8YC6AAmgeWz+GasYYiBJPFaYcSAPeu4GfhUaChzIJXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "tabbable": "^6.4.0" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/glob": { + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/gray-matter": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz", + "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-yaml": "^3.13.1", + "kind-of": "^6.0.2", + "section-matter": "^1.0.0", + "strip-bom-string": "^1.0.0" + }, + "engines": { + "node": ">=6.0" + } + }, + "node_modules/hast-util-to-html": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/hast-util-to-html/-/hast-util-to-html-9.0.5.tgz", + "integrity": "sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/unist": "^3.0.0", + "ccount": "^2.0.0", + "comma-separated-tokens": "^2.0.0", + "hast-util-whitespace": "^3.0.0", + "html-void-elements": "^3.0.0", + "mdast-util-to-hast": "^13.0.0", + "property-information": "^7.0.0", + "space-separated-tokens": "^2.0.0", + "stringify-entities": "^4.0.0", + "zwitch": "^2.0.4" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hast-util-whitespace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz", + "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/hookable": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/hookable/-/hookable-5.5.3.tgz", + "integrity": "sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/html-void-elements": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-void-elements/-/html-void-elements-3.0.0.tgz", + "integrity": "sha512-bEqo66MRXsUGxWHV5IP0PUiAWwoEjba4VCzg0LjFJBpchPaTfyfCKTG6bc5F8ucKec3q5y6qOdGyYTSBEvhCrg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-what": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/is-what/-/is-what-5.5.0.tgz", + "integrity": "sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/lru-cache": { + "version": "11.5.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.1.tgz", + "integrity": "sha512-RPimw/7aMdv2oqRrxKwvZXcPfwBrn/JZ2xYcY9Hus/6LaS3VOAKVWKWgNLCFSiOm1ESXinjsDlidVU7JlnCN2A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/mark.js": { + "version": "8.11.1", + "resolved": "https://registry.npmjs.org/mark.js/-/mark.js-8.11.1.tgz", + "integrity": "sha512-1I+1qpDt4idfgLQG+BNWmrqku+7/2bi5nLf4YwF8y8zXvmfiTBY3PV3ZibfrjBueCByROpuBjLLFCajqkgYoLQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/mdast-util-to-hast": { + "version": "13.2.1", + "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz", + "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/hast": "^3.0.0", + "@types/mdast": "^4.0.0", + "@ungap/structured-clone": "^1.0.0", + "devlop": "^1.0.0", + "micromark-util-sanitize-uri": "^2.0.0", + "trim-lines": "^3.0.0", + "unist-util-position": "^5.0.0", + "unist-util-visit": "^5.0.0", + "vfile": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/micromark-util-character": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz", + "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-symbol": "^2.0.0", + "micromark-util-types": "^2.0.0" + } + }, + "node_modules/micromark-util-encode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz", + "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-sanitize-uri": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz", + "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT", + "dependencies": { + "micromark-util-character": "^2.0.0", + "micromark-util-encode": "^2.0.0", + "micromark-util-symbol": "^2.0.0" + } + }, + "node_modules/micromark-util-symbol": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz", + "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/micromark-util-types": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz", + "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==", + "dev": true, + "funding": [ + { + "type": "GitHub Sponsors", + "url": "https://github.com/sponsors/unifiedjs" + }, + { + "type": "OpenCollective", + "url": "https://opencollective.com/unified" + } + ], + "license": "MIT" + }, + "node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/minisearch": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-7.2.0.tgz", + "integrity": "sha512-dqT2XBYUOZOiC5t2HRnwADjhNS2cecp9u+TJRiJ1Qp/f5qjkeT5APcGPjHw+bz89Ms8Jp+cG4AlE+QZ/QnDglg==", + "dev": true, + "license": "MIT" + }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true, + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/oniguruma-to-es": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz", + "integrity": "sha512-bUH8SDvPkH3ho3dvwJwfonjlQ4R80vjyvrU8YpxuROddv55vAEJrTuCuCVUhhsHbtlD9tGGbaNApGQckXhS8iQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex-xs": "^1.0.0", + "regex": "^6.0.1", + "regex-recursion": "^6.0.2" + } + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/perfect-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", + "integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/postcss": { + "version": "8.5.15", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", + "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.12", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/preact": { + "version": "10.29.2", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.29.2.tgz", + "integrity": "sha512-7tNmwg/7mzzAoB/8kSg6Hl37JraAZw3Z3A0JSY7VXlZwo82Xn0G7wKbNNs2qoF4ZEEsQGTwDAroNdqKs1ofJxQ==", + "dev": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/property-information": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.2.0.tgz", + "integrity": "sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/qsu": { + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/qsu/-/qsu-1.12.1.tgz", + "integrity": "sha512-ZEIuX5ZDovCNrkIen1+Zx6/P31pHtkzX5cFp2yRwM6CRAa1cj726wSwtaqpFomKZGEcsdJoDeJ2LSNNlSj+4Rw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/regex": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/regex/-/regex-6.1.0.tgz", + "integrity": "sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-recursion": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/regex-recursion/-/regex-recursion-6.0.2.tgz", + "integrity": "sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==", + "dev": true, + "license": "MIT", + "dependencies": { + "regex-utilities": "^2.3.0" + } + }, + "node_modules/regex-utilities": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/regex-utilities/-/regex-utilities-2.3.0.tgz", + "integrity": "sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==", + "dev": true, + "license": "MIT" + }, + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/rollup": { + "version": "4.61.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.1.tgz", + "integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.9" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.61.1", + "@rollup/rollup-android-arm64": "4.61.1", + "@rollup/rollup-darwin-arm64": "4.61.1", + "@rollup/rollup-darwin-x64": "4.61.1", + "@rollup/rollup-freebsd-arm64": "4.61.1", + "@rollup/rollup-freebsd-x64": "4.61.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.61.1", + "@rollup/rollup-linux-arm-musleabihf": "4.61.1", + "@rollup/rollup-linux-arm64-gnu": "4.61.1", + "@rollup/rollup-linux-arm64-musl": "4.61.1", + "@rollup/rollup-linux-loong64-gnu": "4.61.1", + "@rollup/rollup-linux-loong64-musl": "4.61.1", + "@rollup/rollup-linux-ppc64-gnu": "4.61.1", + "@rollup/rollup-linux-ppc64-musl": "4.61.1", + "@rollup/rollup-linux-riscv64-gnu": "4.61.1", + "@rollup/rollup-linux-riscv64-musl": "4.61.1", + "@rollup/rollup-linux-s390x-gnu": "4.61.1", + "@rollup/rollup-linux-x64-gnu": "4.61.1", + "@rollup/rollup-linux-x64-musl": "4.61.1", + "@rollup/rollup-openbsd-x64": "4.61.1", + "@rollup/rollup-openharmony-arm64": "4.61.1", + "@rollup/rollup-win32-arm64-msvc": "4.61.1", + "@rollup/rollup-win32-ia32-msvc": "4.61.1", + "@rollup/rollup-win32-x64-gnu": "4.61.1", + "@rollup/rollup-win32-x64-msvc": "4.61.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/search-insights": { + "version": "2.17.3", + "resolved": "https://registry.npmjs.org/search-insights/-/search-insights-2.17.3.tgz", + "integrity": "sha512-RQPdCYTa8A68uM2jwxoY842xDhvx3E5LFL1LxvxCNMev4o5mLuokczhzjAgGwUZBAmOKZknArSxLKmXtIi2AxQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/section-matter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz", + "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "extend-shallow": "^2.0.1", + "kind-of": "^6.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shiki": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz", + "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/core": "2.5.0", + "@shikijs/engine-javascript": "2.5.0", + "@shikijs/engine-oniguruma": "2.5.0", + "@shikijs/langs": "2.5.0", + "@shikijs/themes": "2.5.0", + "@shikijs/types": "2.5.0", + "@shikijs/vscode-textmate": "^10.0.2", + "@types/hast": "^3.0.4" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/space-separated-tokens": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", + "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/speakingurl": { + "version": "14.0.1", + "resolved": "https://registry.npmjs.org/speakingurl/-/speakingurl-14.0.1.tgz", + "integrity": "sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stringify-entities": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz", + "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==", + "dev": true, + "license": "MIT", + "dependencies": { + "character-entities-html4": "^2.0.0", + "character-entities-legacy": "^3.0.0" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/strip-bom-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz", + "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/superjson": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/superjson/-/superjson-2.2.6.tgz", + "integrity": "sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "copy-anything": "^4" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/tabbable": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.4.0.tgz", + "integrity": "sha512-05PUHKSNE8ou2dwIxTngl4EzcnsCDZGJ/iCLtDflR/SHB/ny14rXc+qU5P4mG9JkusiV7EivzY9Mhm55AzAvCg==", + "dev": true, + "license": "MIT" + }, + "node_modules/trim-lines": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz", + "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + }, + "node_modules/unist-util-is": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz", + "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-stringify-position": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz", + "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz", + "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0", + "unist-util-visit-parents": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/unist-util-visit-parents": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz", + "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-is": "^6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz", + "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "vfile-message": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vfile-message": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz", + "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "^3.0.0", + "unist-util-stringify-position": "^4.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vitepress": { + "version": "1.6.4", + "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.6.4.tgz", + "integrity": "sha512-+2ym1/+0VVrbhNyRoFFesVvBvHAVMZMK0rw60E3X/5349M1GuVdKeazuksqopEdvkKwKGs21Q729jX81/bkBJg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@docsearch/css": "3.8.2", + "@docsearch/js": "3.8.2", + "@iconify-json/simple-icons": "^1.2.21", + "@shikijs/core": "^2.1.0", + "@shikijs/transformers": "^2.1.0", + "@shikijs/types": "^2.1.0", + "@types/markdown-it": "^14.1.2", + "@vitejs/plugin-vue": "^5.2.1", + "@vue/devtools-api": "^7.7.0", + "@vue/shared": "^3.5.13", + "@vueuse/core": "^12.4.0", + "@vueuse/integrations": "^12.4.0", + "focus-trap": "^7.6.4", + "mark.js": "8.11.1", + "minisearch": "^7.1.1", + "shiki": "^2.1.0", + "vite": "^5.4.14", + "vue": "^3.5.13" + }, + "bin": { + "vitepress": "bin/vitepress.js" + }, + "peerDependencies": { + "markdown-it-mathjax3": "^4", + "postcss": "^8" + }, + "peerDependenciesMeta": { + "markdown-it-mathjax3": { + "optional": true + }, + "postcss": { + "optional": true + } + } + }, + "node_modules/vitepress-sidebar": { + "version": "1.36.1", + "resolved": "https://registry.npmjs.org/vitepress-sidebar/-/vitepress-sidebar-1.36.1.tgz", + "integrity": "sha512-Y2/GX49/4ypHAKXKh2OgYx7d6Qp/kkkIEbahjDPU7llZS5Huq35hbE0+rUL99NzyFHTDpHV52e9rvwgPmAOtUA==", + "dev": true, + "license": "MIT", + "dependencies": { + "glob": "^13.0.6", + "gray-matter": "^4.0.3", + "qsu": "^1.12.1" + }, + "engines": { + "node": ">=20.0.0" + } + }, + "node_modules/vue": { + "version": "3.5.35", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.35.tgz", + "integrity": "sha512-cx89fnr+0kVGHiNFG6y6s0bdjypJRFNZn6x3WPstNdQR1bi1mbB7h4v5IBGTsPJU3nK1+0Iqj3Zf+hZWMieR4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.35", + "@vue/compiler-sfc": "3.5.35", + "@vue/runtime-dom": "3.5.35", + "@vue/server-renderer": "3.5.35", + "@vue/shared": "3.5.35" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/zwitch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz", + "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==", + "dev": true, + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/wooorm" + } + } + } +} diff --git a/package.json b/package.json @@ -0,0 +1,11 @@ +{ + "devDependencies": { + "vitepress": "^1.6.4", + "vitepress-sidebar": "^1.36.1" + }, + "scripts": { + "docs:dev": "vitepress dev docs-new", + "docs:build": "vitepress build docs-new", + "docs:preview": "vitepress preview docs-new" + } +} diff --git a/SOCIAL_PREVIEW.md b/utils/SOCIAL_PREVIEW.md diff --git a/mkdocs.yml b/utils/mkdocs.yml
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror