commit c750c1869b2d3e8d8c6dfd816c2b491055d0bc18 parent 147c51f60da61933f4a15a17edf6f7305472a58a Author: Amit Dutta <amitdutta4255@gmail.com> Date: Thu, 18 Jun 2026 19:57:08 +0530 start of 2nd sem Diffstat:
| M | README.md | | | 8 | +++++++- |
| M | docs-new/index.md | | | 10 | ++++++++-- |
| M | docs-new/semester_1/R/Code/R_Code-1.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-10.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-11.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/R/Code/R_Code-12.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-13.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-14.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-15.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/R/Code/R_Code-2.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-4.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-5.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-6.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-7.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-8.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Code-9.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Prac-1.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Prac-2.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Prac-3.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Prac-4.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Prac-5.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/Code/R_Prac-6.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/R/Code/R_code-3.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/R/temp.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/assignment-primary/assignment-p-01.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-02.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-03.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-04.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-05.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-06.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-07.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-08.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-09.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-10.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-11.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-12_v1.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-12_v2.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-13.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-14_v1.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-14_v2.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-primary/assignment-p-15.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-01.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-02.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-03.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-04.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-05.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-06.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-07.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-08.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-09.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-10.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-11.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-12.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-13-1.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-13-2.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-14.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-15.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-16.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-17.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-18.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-19.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-20.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-21.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-22.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-23.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/assignment-secondary/assignment-s-24.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-01.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-02.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-03.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-04.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-05.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/internal-practice/IP-06.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-07.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-08.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-09.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-10.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-11.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-12.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-13.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-14.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-15.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-16.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-17.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-18.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-19.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/internal-practice/IP-20.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/khurapati-idea/KI001.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/khurapati-idea/KI002.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/khurapati-idea/KI003.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/khurapati-idea/KI004.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/khurapati-idea/index.md | | | 1 | + |
| A | docs-new/semester_1/khurapati-idea/interpeter.md | | | 122 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| M | docs-new/semester_1/letusc/luc001.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc002.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc003.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc004.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc005.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc006.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc007.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc009.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc010.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc011.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc012.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc013.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc014.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc015.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc016.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc017.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc018-logic.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc018.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc019.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc020.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc021.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc022.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc023.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc024.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc025.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc026.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc027.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/letusc/luc028.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc029.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc030.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc031-logic.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc031.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc032.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc033.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc034.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc035.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc036.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc037.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc038.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc039.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc040-logic.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc040.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc041.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc042.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc043.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc044.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc045.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc046.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc047.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc048.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc049.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc050.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc051.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc052.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc053.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc054.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc055.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc056.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc057.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc058.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc059.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc060.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc061.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc062.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc063.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc064.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc065.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc066.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc067.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc068.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc069.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc070.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc071.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc072.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc073.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc074.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc075.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc076.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc077.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc078.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc079.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc080.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc081.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc082.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc083.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc084.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc085.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc086.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc087.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc088.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc089.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc090.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc091.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc092.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc093.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc094.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc095.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc096.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc097.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc098.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc099.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc100.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc101.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc102.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc103.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc104.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc105.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc106.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc107.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc108.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc109.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc110.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc111.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc112.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc113.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc114.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc115.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc116.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc117.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/luc118.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/luc119.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/lucproblem001.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem002.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem003.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem004.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem005.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem006.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem007.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem009.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/lucproblem010-complex.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/lucproblem010.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem011.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem012.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem013.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem014-short.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/lucproblem014.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/letusc/lucproblem015.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/letusc/lucproblem016.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/external_1.md | | | 22 | ++++++++++++++++++++-- |
| M | docs-new/semester_1/practice-c/external_2.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/external_3.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/external_4.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/external_5.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/external_6.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/external_7.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/external_8.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/practice-c/pc-ip-01.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-02.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-03.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-04.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-05.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-06.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-07.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-08.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-09.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-10.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-11.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-12.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-13.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-14.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-15.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-16.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-17.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-18.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-19.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc-ip-20.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc001.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc002.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc003.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc004.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc005.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc006.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc007.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc009.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc010.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc011.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc012.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc013.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc014.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc015.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/practice-c/pc016.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/practice-c/pc017.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/temp/maheswar01.md | | | 22 | ++++++++++++++++++++-- |
| M | docs-new/semester_1/temp/maheswar02.md | | | 22 | ++++++++++++++++++++-- |
| M | docs-new/semester_1/temp/sudipto1.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/temp/sudiptoown01.md | | | 20 | +++++++++++++++++++- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-001.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-002.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-003.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-004.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-005.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-006.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-007.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-009.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-010.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-011.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-012.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-013.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-014.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-015.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-016.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-017.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-018.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-019.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-020.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-021.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-022.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-023.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-024.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-025.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-026.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-027.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-028.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-029.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-030.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-031.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-032.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-033.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-034.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-035.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-036.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-037.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-038.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-039.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-040.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-041.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-PRAC-042.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-S-001.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/APC-S-002.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/APC-S-003.md | | | 32 | +++++++++++++++++++++++++------- |
| M | docs-new/semester_1/tuition-c/APC-S-004.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-S-005.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-S-006.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-S-007.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/APC-S-008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-S-009.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-S-010.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-S-011.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-S-012.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-S-013.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-S-014.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-SPS-001.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/APC-SPS-002.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-SPS-003.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-SPS-004.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/APC-SPS-005.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-SPS-006.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-SPS-007.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/APC-SPS-008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P001.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/P002.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/P003.md | | | 30 | ++++++++++++++++++++++++------ |
| M | docs-new/semester_1/tuition-c/P004.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P005.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P006.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P007.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P008.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P009.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P010.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P011.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P012.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P013.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P014.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P015.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P016.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P017.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P018.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P019.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P020.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P021.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P022.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P023.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P024.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P025.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P026.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P027.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P028.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P029.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P030.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P031.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P032.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P033.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P034.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P035.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P036.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P037.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P038.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P039.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P040.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P041.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P042.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P043.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P044.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P045.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P046.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P047.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P048.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P049.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P050-SHORT.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P050.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P051.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P052.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P053.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P054.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P055.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P056.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P057.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P058.md | | | 39 | ++++++++++++++++++++++++++++----------- |
| M | docs-new/semester_1/tuition-c/P059.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P060.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P061.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P062.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P063.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P064.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P065.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P066.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P067.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P068.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P069.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_1/tuition-c/P070.md | | | 37 | +++++++++++++++++++++++++++---------- |
| M | docs-new/semester_2/index.md | | | 60 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- |
| A | docs-new/semester_2/practice/index.md | | | 10 | ++++++++++ |
| A | docs-new/semester_2/practice/prac_001.md | | | 59 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | docs-new/semester_2/python/code/code_01.md | | | 63 | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | docs-new/semester_2/python/code/index.md | | | 10 | ++++++++++ |
| A | docs-new/semester_2/python/index.md | | | 10 | ++++++++++ |
| A | docs-new/semester_2/tutition/apc_001.md | | | 60 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| A | docs-new/semester_2/tutition/index.md | | | 10 | ++++++++++ |
| M | list.py | | | 33 | +++++++++++++++++++-------------- |
| M | md.py | | | 3 | +++ |
| M | semester_2/README.md | | | 52 | ++++++++++++++++++++++++++++++++++++++++++++++++++-- |
| A | semester_2/practice/prac_001.cpp | | | 24 | ++++++++++++++++++++++++ |
| A | semester_2/python/code/code_01.py | | | 20 | ++++++++++++++++++++ |
| A | semester_2/tutition/apc_001.cpp | | | 25 | +++++++++++++++++++++++++ |
436 files changed, 11796 insertions(+), 4129 deletions(-)
diff --git a/README.md b/README.md @@ -22,7 +22,7 @@ This repository serves as a comprehensive, live archive of my 4-year academic jo | Semester | Status | Primary Focus | | :--- | :--- | :--- | | [**Semester 1**](./Semester_1/) | Archived | **C Programming**, **R** | -| [**Semester 2**](./Semester_2/) | Active | Upcoming | +| [**Semester 2**](./Semester_2/) | Active | **DSA**, **CPP**, **Python** | | [**Semester 3**](./Semester_3/) | Pending | Upcoming | | [**Semester 4**](./Semester_4/) | Pending | Upcoming | | [**Semester 5**](./Semester_5/) | Pending | Upcoming | @@ -39,6 +39,12 @@ This repository serves as a comprehensive, live archive of my 4-year academic jo 2. **Configuration:** Extract to `C:\MinGW64` and add `C:\MinGW64\bin` to your System Environment Variables. 3. **Verification:** Run `gcc --version` in your terminal. +### Python Development + +1. Download Python `>= v3.x.x`: [Python v3.14.5 original (45 MB)](https://www.python.org/ftp/python/pymanager/python-manager-26.2.msix) +2. Run the installer, ensure you check "Add python.exe to PATH", and complete the setup +3. Verify with python `--version` in your terminal + ### R Programming > [!TIP] > Download and install **R** from [CRAN](https://cran.r-project.org/) and **RStudio** for the best development experience. diff --git a/docs-new/index.md b/docs-new/index.md @@ -39,8 +39,8 @@ Currently navigating **Semester 2**. Folders for future semesters are placeholde | Semester | Status | Primary Focus | |:---|:---|:---| -| [Semester 1](/semester_1/) | Archived | C Programming, R | -| [Semester 2](/semester_2/) | Active | Upcoming | +| [Semester 1](/semester_1/) | Archived | **C Programming**, **R** | +| [Semester 2](/semester_2/) | Active | **DSA**, **CPP**, **Python** | | [Semester 3](/semester_3/) | Pending | Upcoming | | [Semester 4](/semester_4/) | Pending | Upcoming | | [Semester 5](/semester_5/) | Pending | Upcoming | @@ -56,6 +56,12 @@ Currently navigating **Semester 2**. Folders for future semesters are placeholde 2. Extract to `C:\\MinGW64` and add `C:\\MinGW64\\bin` to System Environment Variables 3. Verify with `gcc --version` in your terminal +### Python Development + +1. Download Python `>= v3.x.x`: [Python v3.14.5 original (45 MB)](https://www.python.org/ftp/python/pymanager/python-manager-26.2.msix) +2. Run the installer, ensure you check "Add python.exe to PATH", and complete the setup +3. Verify with python `--version` in your terminal + ### R Programming Download R from [CRAN](https://cran.r-project.org/) and use [RStudio](https://posit.co/downloads/) for the best experience. diff --git a/docs-new/semester_1/R/Code/R_Code-1.md b/docs-new/semester_1/R/Code/R_Code-1.md @@ -5,24 +5,41 @@ description: 'R allows you to assign values to variables in three different ways # R_Code-1.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement R allows you to assign values to variables in three different ways. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-1.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-1.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-1.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-1.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-1.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-10.md b/docs-new/semester_1/R/Code/R_Code-10.md @@ -5,24 +5,41 @@ description: 'Create a numeric vector of student exam scores. Write a single lin # R_Code-10.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 20 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 20 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-10.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-10.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-10.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-10.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-10.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-11.md b/docs-new/semester_1/R/Code/R_Code-11.md @@ -5,24 +5,41 @@ description: 'Write a while loop that starts with a multiplier of 1. The loop sh # R_Code-11.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 20 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 20 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-11.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-11.r) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-11.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-11.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-11.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-12.md b/docs-new/semester_1/R/Code/R_Code-12.md @@ -5,24 +5,41 @@ description: 'Write a custom function named calculate_area that takes two parame # R_Code-12.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 20 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 20 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-12.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-12.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-12.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-12.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-12.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-13.md b/docs-new/semester_1/R/Code/R_Code-13.md @@ -5,24 +5,41 @@ description: 'Create a list named student_record containing a string, an integer # R_Code-13.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 20 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 20 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-13.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-13.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-13.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-13.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-13.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-14.md b/docs-new/semester_1/R/Code/R_Code-14.md @@ -5,24 +5,41 @@ description: 'Write an if...else if...else block that evaluates a newly created # R_Code-14.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 20 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 20 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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." -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-14.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-14.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-14.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-14.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-14.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 20 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-15.md b/docs-new/semester_1/R/Code/R_Code-15.md @@ -7,8 +7,26 @@ description: 'R program — R_Code-15.r' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-15.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-15.r) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-15.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-15.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-15.r] # Asking for a name name <- readline(prompt = "Enter your name: ") diff --git a/docs-new/semester_1/R/Code/R_Code-2.md b/docs-new/semester_1/R/Code/R_Code-2.md @@ -5,24 +5,41 @@ description: 'How do you declare an explicitly integer variable (e.g., the numbe # R_Code-2.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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"? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-2.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-2.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-2.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-2.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-2.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-4.md b/docs-new/semester_1/R/Code/R_Code-4.md @@ -5,24 +5,41 @@ description: 'Write a standard if...else block that checks if a variable named a # R_Code-4.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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.". -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-4.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-4.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-4.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-4.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-4.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-5.md b/docs-new/semester_1/R/Code/R_Code-5.md @@ -5,24 +5,41 @@ description: 'You have a vector of numbers: x <- c(12, 9, 23, 14). Use R''s shor # R_Code-5.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-5.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-5.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-5.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-5.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-5.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-6.md b/docs-new/semester_1/R/Code/R_Code-6.md @@ -5,24 +5,41 @@ description: 'Write a while loop with a number variable starting at 1. The loop # R_Code-6.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-6.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-6.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-6.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-6.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-6.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-7.md b/docs-new/semester_1/R/Code/R_Code-7.md @@ -5,24 +5,41 @@ description: 'Create a numerical vector containing the sequence of numbers from # R_Code-7.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-7.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-7.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-7.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-7.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-7.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-8.md b/docs-new/semester_1/R/Code/R_Code-8.md @@ -5,24 +5,41 @@ description: 'Create a list named list1 containing the number 24, the string "Sa # R_Code-8.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-8.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-8.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-8.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-8.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-8.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Code-9.md b/docs-new/semester_1/R/Code/R_Code-9.md @@ -5,24 +5,41 @@ description: 'Define a function called power that takes two parameters, a and b. # R_Code-9.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-9.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-9.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Code-9.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Code-9.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Code-9.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Prac-1.md b/docs-new/semester_1/R/Code/R_Prac-1.md @@ -5,24 +5,41 @@ description: 'Write a R program to print numbers from 1 to 5.' # R_Prac-1.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 25 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 25 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a R program to print numbers from 1 to 5. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-1.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-1.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-1.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-1.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Prac-1.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Prac-2.md b/docs-new/semester_1/R/Code/R_Prac-2.md @@ -5,24 +5,41 @@ description: 'Check whether a number is even or odd.' # R_Prac-2.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 25 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 25 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Check whether a number is even or odd. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-2.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-2.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-2.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-2.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Prac-2.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Prac-3.md b/docs-new/semester_1/R/Code/R_Prac-3.md @@ -5,24 +5,41 @@ description: 'Print elements of vector using for loop.' # R_Prac-3.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 25 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 25 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Print elements of vector using for loop. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-3.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-3.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-3.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-3.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Prac-3.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Prac-4.md b/docs-new/semester_1/R/Code/R_Prac-4.md @@ -5,24 +5,41 @@ description: 'Program to add two numbers in R program.' # R_Prac-4.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 25 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 25 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Program to add two numbers in R program. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-4.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-4.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-4.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-4.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Prac-4.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Prac-5.md b/docs-new/semester_1/R/Code/R_Prac-5.md @@ -5,24 +5,41 @@ description: 'Program to count the number of even numbers stored inside a vector # R_Prac-5.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 25 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 25 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Program to count the number of even numbers stored inside a vector of numbers. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-5.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-5.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-5.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-5.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Prac-5.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_Prac-6.md b/docs-new/semester_1/R/Code/R_Prac-6.md @@ -5,24 +5,41 @@ description: 'Program to access List elements, modify a List Element, add items # R_Prac-6.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 25 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 25 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Program to access List elements, modify a List Element, add items to List, Remove items from a List, length of List. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-6.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-6.r) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_Prac-6.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_Prac-6.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_Prac-6.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 25 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/Code/R_code-3.md b/docs-new/semester_1/R/Code/R_code-3.md @@ -5,24 +5,41 @@ description: 'Assume you have a variable company <- "Programiz". Write a line of # R_code-3.r -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 19 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 19 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_code-3.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_code-3.r) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/code/R_code-3.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/code/R_code-3.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [R_code-3.r] # Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 19 Mar 2026 # Repo: https://github.com/notamitgamer/bsc diff --git a/docs-new/semester_1/R/temp.md b/docs-new/semester_1/R/temp.md @@ -7,8 +7,26 @@ description: 'R program — temp.r' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/r/temp.r) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/r/temp.r) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/r/temp.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/r/temp.r" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```r [temp.r] s1 = rep(c(1,2,3,4,5), times=2) s2 = c(5,4,3,2,1) diff --git a/docs-new/semester_1/assignment-primary/assignment-p-01.md b/docs-new/semester_1/assignment-primary/assignment-p-01.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named isPr # assignment-p-01.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-01.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-01.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-01.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-02.md b/docs-new/semester_1/assignment-primary/assignment-p-02.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named isAr # assignment-p-02.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-02.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-02.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-02.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-03.md b/docs-new/semester_1/assignment-primary/assignment-p-03.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named isPe # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-03.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-03.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-03.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-04.md b/docs-new/semester_1/assignment-primary/assignment-p-04.md @@ -5,24 +5,41 @@ description: 'Write a C program that takes an integer input representing a month # assignment-p-04.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-04.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-04.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-04.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-05.md b/docs-new/semester_1/assignment-primary/assignment-p-05.md @@ -5,24 +5,41 @@ description: 'Write a C program that defines an array of integers, and includes # assignment-p-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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-05.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-05.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-05.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-06.md b/docs-new/semester_1/assignment-primary/assignment-p-06.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named find # assignment-p-06.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-06.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-06.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-06.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-07.md b/docs-new/semester_1/assignment-primary/assignment-p-07.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named bina # assignment-p-07.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-07.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-07.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-07.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-08.md b/docs-new/semester_1/assignment-primary/assignment-p-08.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named coun # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-08.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-08.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-08.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-09.md b/docs-new/semester_1/assignment-primary/assignment-p-09.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named setB # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-09.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-09.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-09.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-10.md b/docs-new/semester_1/assignment-primary/assignment-p-10.md @@ -5,24 +5,41 @@ description: 'Write a C program that defines a structure Rectangle with attribut # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-10.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-10.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-10.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-11.md b/docs-new/semester_1/assignment-primary/assignment-p-11.md @@ -5,24 +5,41 @@ description: 'Write a C program that defines a structure Student containing the # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-11.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-11.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-11.c] #include <stdio.h> #include <string.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program that takes multiple integers as command-line arg # assignment-p-12_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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v1.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v1.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-12_v1.c] #include <stdio.h> #include <stdlib.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program that takes multiple integers as command-line arg # assignment-p-12_v2.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Feb 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a C program that takes multiple integers as command-line arguments and finds the maximum and minimum value among them. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v2.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v2.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-12_v2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-12_v2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-12_v2.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-13.md b/docs-new/semester_1/assignment-primary/assignment-p-13.md @@ -5,24 +5,41 @@ description: 'Write a C program that accepts a string as a command line argument # assignment-p-13.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-13.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-13.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-13.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-13.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-13.c] #include <stdio.h> #include <stdlib.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program that opens its own source code file, reads its 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement 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 -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v1.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v1.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-14_v1.c] #include <stdio.h> #include <string.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program that opens its own source code file, reads its c # assignment-p-14_v2.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement 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 -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v2.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v2.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-14_v2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-14_v2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-14_v2.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-primary/assignment-p-15.md b/docs-new/semester_1/assignment-primary/assignment-p-15.md @@ -5,24 +5,41 @@ description: 'Write a C program that reads a sequence of integers from a file na # assignment-p-15.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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' -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-15.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-15.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-primary/assignment-p-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-primary/assignment-p-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-p-15.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-01.md b/docs-new/semester_1/assignment-secondary/assignment-s-01.md @@ -5,24 +5,41 @@ description: 'Write a program to compute the sum and product of digits of an int # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to compute the sum and product of digits of an integer using user defined functions. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-01.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-01.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-01.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-02.md b/docs-new/semester_1/assignment-secondary/assignment-s-02.md @@ -5,24 +5,41 @@ description: 'Write a program to reverse a non-negative integer using a function # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to reverse a non-negative integer using a function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-02.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-02.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-02.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-03.md b/docs-new/semester_1/assignment-secondary/assignment-s-03.md @@ -5,24 +5,41 @@ description: 'Write a program to compute the sum of the first n terms of the ser # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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+… -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-03.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-03.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-03.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-04.md b/docs-new/semester_1/assignment-secondary/assignment-s-04.md @@ -5,24 +5,41 @@ description: 'Write a function to check whether a number is prime or not. Use th # assignment-s-04.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-04.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-04.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-04.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-05.md b/docs-new/semester_1/assignment-secondary/assignment-s-05.md @@ -5,24 +5,41 @@ description: 'Write a function to check whether a given string is a palindrome. # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-05.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-05.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-05.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-06.md b/docs-new/semester_1/assignment-secondary/assignment-s-06.md @@ -5,24 +5,41 @@ description: 'Write a program using a function to compute and display all factor # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program using a function to compute and display all factors of a given number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-06.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-06.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-06.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-07.md b/docs-new/semester_1/assignment-secondary/assignment-s-07.md @@ -5,24 +5,41 @@ description: 'Write a program to swap two numbers using a macro (#define).' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to swap two numbers using a macro (#define). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-07.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-07.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-07.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-08.md b/docs-new/semester_1/assignment-secondary/assignment-s-08.md @@ -5,24 +5,41 @@ description: 'Write a program that counts the number of occurrences of each alph # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-08.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-08.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-08.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-09.md b/docs-new/semester_1/assignment-secondary/assignment-s-09.md @@ -5,24 +5,41 @@ description: 'Write a program to swap two numbers using pointers (user-defined f # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 17 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to swap two numbers using pointers (user-defined function). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-09.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-09.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-09.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-10.md b/docs-new/semester_1/assignment-secondary/assignment-s-10.md @@ -5,24 +5,41 @@ description: 'Write a program to swap two numbers using pointers (user-defined f # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 17 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to swap two numbers using pointers (user-defined function). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-10.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-10.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-10.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-11.md b/docs-new/semester_1/assignment-secondary/assignment-s-11.md @@ -5,24 +5,41 @@ description: 'Write a program that takes the radius of a circle as input, passes # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 17 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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(). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-11.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-11.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-11.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-12.md b/docs-new/semester_1/assignment-secondary/assignment-s-12.md @@ -5,24 +5,41 @@ description: 'Write a program to find the sum of n elements entered by the user. # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 17 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-12.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-12.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-12.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-12.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-12.c] #include <stdio.h> #include <stdlib.h> 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 @@ -5,24 +5,41 @@ description: 'Write a function that reverses the elements of an array in place, # assignment-s-13-1.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 19 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 19 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-1.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-1.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-13-1.c] #include <stdio.h> #include <stdlib.h> 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 @@ -5,24 +5,41 @@ description: 'Write a function that reverses the elements of an array in place, # assignment-s-13-2.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 19 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 19 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-2.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-2.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-13-2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-13-2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-13-2.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-14.md b/docs-new/semester_1/assignment-secondary/assignment-s-14.md @@ -5,24 +5,41 @@ description: 'Write a menu-driven program to perform the following string operat # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 20 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-14.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-14.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-14.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-14.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-14.c] #include <stdio.h> #include <ctype.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-15.md b/docs-new/semester_1/assignment-secondary/assignment-s-15.md @@ -5,24 +5,41 @@ description: 'Write a program to merge two sorted integer arrays to form a singl # assignment-s-15.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 21 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 21 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to merge two sorted integer arrays to form a single sorted array. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-15.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-15.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-15.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-16.md b/docs-new/semester_1/assignment-secondary/assignment-s-16.md @@ -5,24 +5,41 @@ description: 'Write a program that reads 10 integers into an array (using pointe # assignment-s-16.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 21 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 21 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-16.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-16.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-16.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-16.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-16.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-17.md b/docs-new/semester_1/assignment-secondary/assignment-s-17.md @@ -5,24 +5,41 @@ description: 'Write a program to display the Fibonacci series (i) using recursio # assignment-s-17.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 21 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 21 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to display the Fibonacci series (i) using recursion (ii) using iteration -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-17.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-17.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-17.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-17.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-17.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-18.md b/docs-new/semester_1/assignment-secondary/assignment-s-18.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate the factorial of a number (i) using r # assignment-s-18.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 22 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-18.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-18.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-18.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-18.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-18.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-19.md b/docs-new/semester_1/assignment-secondary/assignment-s-19.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate the GCD of two numbers (i) using recu # assignment-s-19.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 22 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-19.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-19.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-19.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-19.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-19.c] #include <stdio.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-20.md b/docs-new/semester_1/assignment-secondary/assignment-s-20.md @@ -5,24 +5,41 @@ description: 'Write a menu-driven program to perform the following matrix operat # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 22 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-20.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-20.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-20.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-20.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-20.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-21.md b/docs-new/semester_1/assignment-secondary/assignment-s-21.md @@ -5,24 +5,41 @@ description: 'Write a program to copy the contents of a text file to another fil # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 21 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement 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 -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-21.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-21.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-21.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-21.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-21.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-22.md b/docs-new/semester_1/assignment-secondary/assignment-s-22.md @@ -5,24 +5,41 @@ description: 'Write a program using structures to add two distances in meter-kil # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program using structures to add two distances in meter-kilometer format. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-22.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-22.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-22.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-22.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-22.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-23.md b/docs-new/semester_1/assignment-secondary/assignment-s-23.md @@ -5,24 +5,41 @@ description: 'Write a program to add two complex numbers using structures.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to add two complex numbers using structures. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-23.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-23.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-23.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-23.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-23.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/assignment-secondary/assignment-s-24.md b/docs-new/semester_1/assignment-secondary/assignment-s-24.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate the difference between two time perio # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate the difference between two time periods using structures. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-24.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-24.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/assignment-secondary/assignment-s-24.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/assignment-secondary/assignment-s-24.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [assignment-s-24.c] #include <stdio.h> #include <stdlib.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program to find the maximum element in each row of a 2D # Qn-10.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Mar 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Mar 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a C program to find the maximum element in each row of a 2D array and print the result. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-10.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [Qn-10.c] #include <stdio.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program to find the transpose of a given square matrix u # Qn-8.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Mar 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Mar 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-8.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [Qn-8.c] #include <stdio.h> 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 @@ -5,24 +5,41 @@ description: 'Write a C program to find sum of all elements in a given 2D array. # Qn-9.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Mar 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Mar 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a C program to find sum of all elements in a given 2D array. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-1_05-03-2026/Qn-9.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [Qn-9.c] #include <stdio.h> 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 @@ -5,24 +5,41 @@ description: 'Write a program to explain, how an array of stucture can you defin # Qn-11.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Mar 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Mar 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to explain, how an array of stucture can you defined and accessed. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-11.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [Qn-11.c] #include <stdio.h> #include <string.h> 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 @@ -5,24 +5,41 @@ description: 'Write a program to search an element from an array using linear se # Qn-3.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Mar 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Mar 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-3.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [Qn-3.c] #include <stdio.h> #include <stdlib.h> 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 @@ -5,24 +5,41 @@ description: 'Write a program to check a string is palindrome or not using user- # Qn-4.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 06 Mar 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Mar 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check a string is palindrome or not using user-defined function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/eduincs_exam/Paper-2_05-03-2026/Qn-4.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <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 noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [Qn-4.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/internal-practice/IP-01.md b/docs-new/semester_1/internal-practice/IP-01.md @@ -5,24 +5,41 @@ description: 'Write a program to compute the sum and product of digits of an int # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to compute the sum and product of digits of an integer using user defined functions. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-01.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-01.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-01.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-02.md b/docs-new/semester_1/internal-practice/IP-02.md @@ -5,24 +5,41 @@ description: 'Write a program to reverse a non-negative integer using a function # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to reverse a non-negative integer using a function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-02.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-02.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-02.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-03.md b/docs-new/semester_1/internal-practice/IP-03.md @@ -5,24 +5,41 @@ description: 'Write a program to compute the sum of the first n terms of the ser # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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+… -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-03.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-03.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-03.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-04.md b/docs-new/semester_1/internal-practice/IP-04.md @@ -5,24 +5,41 @@ description: 'Write a function to check whether a number is prime or not. Use th # IP-04.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-04.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-04.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-04.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/internal-practice/IP-05.md b/docs-new/semester_1/internal-practice/IP-05.md @@ -5,24 +5,41 @@ description: 'Write a function to check whether a given string is a palindrome. # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-05.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-05.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-05.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/internal-practice/IP-06.md b/docs-new/semester_1/internal-practice/IP-06.md @@ -5,24 +5,41 @@ description: 'Write a program using a function to compute and display all factor # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program using a function to compute and display all factors of a given number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-06.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-06.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-06.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/internal-practice/IP-07.md b/docs-new/semester_1/internal-practice/IP-07.md @@ -5,24 +5,41 @@ description: 'Write a program to swap two numbers using pointers (user-defined f # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to swap two numbers using pointers (user-defined function). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-07.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-07.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-07.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-08.md b/docs-new/semester_1/internal-practice/IP-08.md @@ -5,24 +5,41 @@ description: 'Write a program that takes the radius of a circle as input, passes # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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(). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-08.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-08.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-08.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/internal-practice/IP-09.md b/docs-new/semester_1/internal-practice/IP-09.md @@ -5,24 +5,41 @@ description: 'Write a program to find the sum of n elements entered by the user. # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find the sum of n elements entered by the user. Use dynamic memory allocation (malloc() or calloc()). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-09.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-09.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-09.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/internal-practice/IP-10.md b/docs-new/semester_1/internal-practice/IP-10.md @@ -5,24 +5,41 @@ description: 'Write a function that reverses the elements of an array in place, # IP-10.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a function that reverses the elements of an array in place, using only a single pointer argument, and return void. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-10.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-10.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-10.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/internal-practice/IP-11.md b/docs-new/semester_1/internal-practice/IP-11.md @@ -5,24 +5,41 @@ description: 'Write a program to merge two sorted integer arrays to form a singl # IP-11.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to merge two sorted integer arrays to form a single sorted array. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-11.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-11.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-11.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/internal-practice/IP-12.md b/docs-new/semester_1/internal-practice/IP-12.md @@ -5,24 +5,41 @@ description: 'Write a program that reads 10 integers into an array (using pointe # IP-12.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program that reads 10 integers into an array (using pointers), and prints the array in ascending and descending order. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-12.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-12.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-12.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-12.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-12.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/internal-practice/IP-13.md b/docs-new/semester_1/internal-practice/IP-13.md @@ -5,24 +5,41 @@ description: 'Write a program to display the Fibonacci series (i) using recursio # IP-13.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to display the Fibonacci series (i) using recursion (ii) using iteration -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-13.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-13.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-13.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-13.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-13.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-14.md b/docs-new/semester_1/internal-practice/IP-14.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate the factorial of a number (i) using r # IP-14.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate the factorial of a number (i) using recursion (ii) using iteration -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-14.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-14.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-14.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-14.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-14.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-15.md b/docs-new/semester_1/internal-practice/IP-15.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate the GCD of two numbers (i) using recu # IP-15.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate the GCD of two numbers (i) using recursion (ii) without recursion -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-15.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-15.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-15.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-16.md b/docs-new/semester_1/internal-practice/IP-16.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named isAr # IP-16.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-16.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-16.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-16.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-16.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-16.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/internal-practice/IP-17.md b/docs-new/semester_1/internal-practice/IP-17.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named isPe # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-17.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-17.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-17.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-17.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-17.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-18.md b/docs-new/semester_1/internal-practice/IP-18.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named find # IP-18.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-18.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-18.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-18.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-18.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-18.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-19.md b/docs-new/semester_1/internal-practice/IP-19.md @@ -5,24 +5,41 @@ description: 'Write a C program that includes a user-defined function named bina # IP-19.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-19.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-19.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-19.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-19.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-19.c] #include <stdio.h> diff --git a/docs-new/semester_1/internal-practice/IP-20.md b/docs-new/semester_1/internal-practice/IP-20.md @@ -5,24 +5,41 @@ description: 'Write a C program that defines an array of integers, and includes # IP-20.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 03 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-20.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-20.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/internal-practice/IP-20.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/internal-practice/IP-20.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [IP-20.c] #include <stdio.h> diff --git a/docs-new/semester_1/khurapati-idea/KI001.md b/docs-new/semester_1/khurapati-idea/KI001.md @@ -5,16 +5,34 @@ description: 'C program — KI001.c' # KI001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [KI001.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/khurapati-idea/KI002.md b/docs-new/semester_1/khurapati-idea/KI002.md @@ -5,24 +5,41 @@ description: 'Plan - checking for edge case' # KI002.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Plan - checking for edge case -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI002.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [KI002.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/khurapati-idea/KI003.md b/docs-new/semester_1/khurapati-idea/KI003.md @@ -5,24 +5,41 @@ description: 'Bubble sort (with swap)' # KI003.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 24 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 24 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Bubble sort (with swap) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [KI003.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/khurapati-idea/KI004.md b/docs-new/semester_1/khurapati-idea/KI004.md @@ -5,24 +5,41 @@ description: 'Trying to write code only with emoji' # KI004.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 27 Jan 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 27 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Trying to write code only with emoji -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/KI004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/KI004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [KI004.c] #include<stdio.h> diff --git a/docs-new/semester_1/khurapati-idea/index.md b/docs-new/semester_1/khurapati-idea/index.md @@ -10,4 +10,5 @@ Files and sub-folders in **Khurapati Idea**. | 2 | `KI002.c` | [View Code](KI002.md) | | 3 | `KI003.c` | [View Code](KI003.md) | | 4 | `KI004.c` | [View Code](KI004.md) | +| 5 | `interpeter.py` | [View Code](interpeter.md) | diff --git a/docs-new/semester_1/khurapati-idea/interpeter.md b/docs-new/semester_1/khurapati-idea/interpeter.md @@ -0,0 +1,122 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> interpeter.py' +description: 'Python program — interpeter.py' +--- + +# interpeter.py + +### Metadata + +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 06 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) + +## Source Code + +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/khurapati-idea/interpeter.py" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/khurapati-idea/interpeter.py" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: +```python [interpeter.py] +# Author : Amit Dutta <amitdutta4255@gmail.com> +# Date : 06 Feb 2026 +# Repo : https://github.com/notamitgamer/bsc +# License : MIT License (See the LICENSE file for details) +# Copyright (c) 2026 Amit Dutta + +import sys +import os +import subprocess +import re + +# Set the absolute path to your GCC compiler based on your system logs +COMPILER_PATH = r"G:\bsc\MinGW64\bin\gcc.exe" + +def run_universal_compiler(): + if len(sys.argv) < 2: + print("Usage: python emojic.py <file.c>") + sys.exit(1) + + source_path = sys.argv[1] + if not os.path.exists(source_path): + print(f"File not found: {source_path}") + sys.exit(1) + + with open(source_path, 'r', encoding='utf-8') as f: + content = f.read() + + mapping = {} + # Extract emoji mappings from #define statements + define_pattern = re.compile(r'#define\s+(\S+)\s+(.+)') + + lines = content.splitlines() + code_lines = [] + + for line in lines: + match = define_pattern.match(line.strip()) + if match: + emoji_key = match.group(1) + c_value = match.group(2).strip() + mapping[emoji_key] = c_value + else: + code_lines.append(line) + + translated_code = "\n".join(code_lines) + + # Sort keys by length descending to replace multi-emoji tokens correctly + sorted_keys = sorted(mapping.keys(), key=len, reverse=True) + + for key in sorted_keys: + translated_code = translated_code.replace(key, mapping[key]) + + # Ensure standard header is present if logic needs it + header = "#include <stdio.h>\n" + if "#include" not in translated_code: + translated_code = header + translated_code + + temp_file = "output_target.c" + with open(temp_file, "w", encoding="utf-8") as f: + f.write(translated_code) + + exe_name = source_path.rsplit('.', 1)[0] + ".exe" + compile_cmd = [COMPILER_PATH, temp_file, "-o", exe_name] + + try: + # Use shell=True for better command resolution on Windows + result = subprocess.run(compile_cmd, capture_output=True, text=True, shell=(os.name == 'nt')) + + if result.returncode == 0: + print(f"Compilation Successful: {exe_name}") + run_cmd = [f".\\{exe_name}"] if os.name == 'nt' else [f"./{exe_name}"] + subprocess.run(run_cmd, shell=(os.name == 'nt')) + else: + print("Compilation Error:") + print(result.stderr) + + except FileNotFoundError: + print(f"Error: Compiler '{COMPILER_PATH}' not found.") + print("Please ensure GCC is installed and added to your PATH,") + print("or edit COMPILER_PATH in this script to point to your gcc.exe.") + + if os.path.exists(temp_file): + os.remove(temp_file) + +if __name__ == "__main__": + run_universal_compiler() +``` diff --git a/docs-new/semester_1/letusc/luc001.md b/docs-new/semester_1/letusc/luc001.md @@ -5,24 +5,41 @@ description: 'Temperature of a city in fahrenheit degrees is input through the k # luc001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc001.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/letusc/luc002.md b/docs-new/semester_1/letusc/luc002.md @@ -5,24 +5,41 @@ description: 'The length and breadth of a rectangle and radius of a circle are i # luc002.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc002.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc003.md b/docs-new/semester_1/letusc/luc003.md @@ -5,24 +5,41 @@ description: 'Paper of size AO has dimensions 1189 mm x 841 mm. Each subsequent # luc003.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc003.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/letusc/luc004.md b/docs-new/semester_1/letusc/luc004.md @@ -5,24 +5,41 @@ description: 'If a five digit number is input through the keyboard, write a prog # luc004.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 %) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc004.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc005.md b/docs-new/semester_1/letusc/luc005.md @@ -5,24 +5,41 @@ description: 'Write a program to recive Cartesian co-ordinates (x, y) of a point # luc005.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc005.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc005.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc006.md b/docs-new/semester_1/letusc/luc006.md @@ -5,24 +5,41 @@ description: 'Write a program to receive values of latitude (L1, L2) and longitu # luc006.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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)) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc006.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc006.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc007.md b/docs-new/semester_1/letusc/luc007.md @@ -5,24 +5,41 @@ description: 'Wind-chill factor is the felt air temperature on exposed skin due # luc007.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc007.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc007.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc008.md b/docs-new/semester_1/letusc/luc008.md @@ -5,24 +5,41 @@ description: 'If value of an angle is input through the keyboard, write a progra # luc008.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement If value of an angle is input through the keyboard, write a program to print all its trigonometric ratios. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc008.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc009.md b/docs-new/semester_1/letusc/luc009.md @@ -5,24 +5,41 @@ description: 'Two numbers are input through the keyboard into two locations C an # luc009.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc009.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc009.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc009.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc010.md b/docs-new/semester_1/letusc/luc010.md @@ -5,24 +5,41 @@ description: 'A five-digit number is entered through the keyboard. Write a progr # luc010.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc010.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc010.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc010.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc011.md b/docs-new/semester_1/letusc/luc011.md @@ -5,24 +5,41 @@ description: 'If ages of Ram, Shyam and Ajay are input through the keyboard, wri # luc011.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement If ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc011.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc011.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc011.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc012.md b/docs-new/semester_1/letusc/luc012.md @@ -5,24 +5,41 @@ description: 'Write a program to check whether a triangle is valid or not, if th # luc012.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc012.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc012.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc012.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc013.md b/docs-new/semester_1/letusc/luc013.md @@ -5,24 +5,41 @@ description: 'Write a program to find the absolute value of a number entered thr # luc013.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find the absolute value of a number entered through the keyboard. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc013.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc013.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc013.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc014.md b/docs-new/semester_1/letusc/luc014.md @@ -5,24 +5,41 @@ description: 'Given the length and breadth of a rectangle, write a program to fi # luc014.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc014.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc014.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc014.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc015.md b/docs-new/semester_1/letusc/luc015.md @@ -5,24 +5,41 @@ description: 'Given three points (x1, y1), (x2, y2), and (x3, y3), write a progr # luc015.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc015.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc015.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc015.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc016.md b/docs-new/semester_1/letusc/luc016.md @@ -5,24 +5,41 @@ description: 'Given the coordiantes (x, y) of center of a circle and its radius, # luc016.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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.) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc016.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc016.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc016.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc017.md b/docs-new/semester_1/letusc/luc017.md @@ -5,24 +5,41 @@ description: 'Given a point (x, y), write a program to find out if it lies on X- # luc017.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Given a point (x, y), write a program to find out if it lies on X-axis, Y-axis or origin. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc017.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc017.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc017.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc018-logic.md b/docs-new/semester_1/letusc/luc018-logic.md @@ -5,24 +5,41 @@ description: 'According to Gregorian calender, it was Monday on the date 01/01/0 # luc018-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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018-logic.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018-logic.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018-logic.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018-logic.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc018-logic.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc018.md b/docs-new/semester_1/letusc/luc018.md @@ -5,24 +5,41 @@ description: 'According to Gregorian calender, it was Monday on the date 01/01/0 # luc018.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc018.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc018.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc018.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc019.md b/docs-new/semester_1/letusc/luc019.md @@ -5,24 +5,41 @@ description: 'If the length of three sides of a triangle are entered through the # luc019.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc019.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc019.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc019.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc019.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc019.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc020.md b/docs-new/semester_1/letusc/luc020.md @@ -5,24 +5,41 @@ description: 'In digital world colors are specified in Red-Green-Blue (RGB) form # luc020.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc020.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc020.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc020.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc020.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc020.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc021.md b/docs-new/semester_1/letusc/luc021.md @@ -5,24 +5,41 @@ description: 'A certain grade of steel is graded according to the following cond # luc021.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc021.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc021.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc021.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc021.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc021.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc022.md b/docs-new/semester_1/letusc/luc022.md @@ -5,24 +5,41 @@ description: 'The Body Mass Index (BMI) is defined as ratio of weight of the pe # luc022.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc022.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc022.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc022.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc022.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc022.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc023.md b/docs-new/semester_1/letusc/luc023.md @@ -5,24 +5,41 @@ description: 'Using conditional operators determine : (1) Whether the character # luc023.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc023.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc023.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc023.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc023.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc023.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc024.md b/docs-new/semester_1/letusc/luc024.md @@ -5,24 +5,41 @@ description: 'Write a program using conditional operators to determine whether a # luc024.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc024.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc024.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc024.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc024.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc024.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc025.md b/docs-new/semester_1/letusc/luc025.md @@ -5,24 +5,41 @@ description: 'Write a program to find the greates of the three numbers entered t # luc025.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find the greates of the three numbers entered through the keyboard. Use conditional operators. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc025.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc025.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc025.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc025.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc025.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc026.md b/docs-new/semester_1/letusc/luc026.md @@ -5,24 +5,41 @@ description: 'Write a program to recieve value of an angle in degreesand check w # luc026.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc026.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc026.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc026.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc026.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc026.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc027.md b/docs-new/semester_1/letusc/luc027.md @@ -5,16 +5,34 @@ description: 'C program — luc027.c' # luc027.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc027.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc027.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc027.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc027.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc027.c] #include<stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc028.md b/docs-new/semester_1/letusc/luc028.md @@ -5,24 +5,41 @@ description: 'Write a program to print all the ASCII values and their equivalent # luc028.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc028.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc028.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc028.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc028.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc028.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc029.md b/docs-new/semester_1/letusc/luc029.md @@ -5,24 +5,41 @@ description: 'Write a program to print out all Armstrong numbers between 100 and # luc029.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc029.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc029.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc029.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc029.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc029.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc030.md b/docs-new/semester_1/letusc/luc030.md @@ -5,24 +5,41 @@ description: 'Write a program for a matchstick game being played between the com # luc030.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc030.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc030.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc030.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc030.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc030.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc031-logic.md b/docs-new/semester_1/letusc/luc031-logic.md @@ -5,24 +5,41 @@ description: 'Write a program to enter numbers till the user wants. At the end i # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031-logic.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031-logic.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031-logic.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031-logic.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc031-logic.c] #include <stdio.h> #include <stdlib.h> // for strtol diff --git a/docs-new/semester_1/letusc/luc031.md b/docs-new/semester_1/letusc/luc031.md @@ -5,24 +5,41 @@ description: 'Write a program to enter numbers till the user wants. At the end i # luc031.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc031.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc031.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc031.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc032.md b/docs-new/semester_1/letusc/luc032.md @@ -5,24 +5,41 @@ description: 'Write a program to recieve an integer and find its octal equivalen # luc032.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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.) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc032.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc032.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc032.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc032.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc032.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc033.md b/docs-new/semester_1/letusc/luc033.md @@ -5,24 +5,41 @@ description: 'Write a program to find the range of a set of numbers entered thro # luc033.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc033.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc033.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc033.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc033.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc033.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc034.md b/docs-new/semester_1/letusc/luc034.md @@ -5,24 +5,41 @@ description: 'Write a program to print the multiplication table of the number en # luc034.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc034.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc034.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc034.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc034.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc034.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc035.md b/docs-new/semester_1/letusc/luc035.md @@ -5,24 +5,41 @@ description: 'According to a study, the approximate level of intelligence of a p # luc035.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc035.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc035.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc035.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc035.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc035.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc036.md b/docs-new/semester_1/letusc/luc036.md @@ -5,24 +5,41 @@ description: 'When interest compounds q times per year at an annual rate of r % # luc036.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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' -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc036.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc036.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc036.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc036.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc036.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc037.md b/docs-new/semester_1/letusc/luc037.md @@ -5,24 +5,41 @@ description: 'The natural logarithm can be approximated by the following series. # luc037.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc037.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc037.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc037.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc037.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc037.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc038.md b/docs-new/semester_1/letusc/luc038.md @@ -5,24 +5,41 @@ description: 'Write a program to generate all Pythagorean Triplets with slide le # luc038.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to generate all Pythagorean Triplets with slide length less than or equal to 30. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc038.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc038.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc038.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc038.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc038.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc039.md b/docs-new/semester_1/letusc/luc039.md @@ -5,24 +5,41 @@ description: 'Population of a town today is 100000. The population has increased # luc039.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc039.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc039.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc039.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc039.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc039.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc040-logic.md b/docs-new/semester_1/letusc/luc040-logic.md @@ -5,24 +5,41 @@ description: 'Ramanujan number (1729) is the smallest number that can be express # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040-logic.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040-logic.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040-logic.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040-logic.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc040-logic.c] #include <stdio.h> // Includes the standard input/output library, necessary for printf() diff --git a/docs-new/semester_1/letusc/luc040.md b/docs-new/semester_1/letusc/luc040.md @@ -5,24 +5,41 @@ description: 'Ramanujan number (1729) is the smallest number that can be express # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc040.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc040.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc040.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc041.md b/docs-new/semester_1/letusc/luc041.md @@ -5,24 +5,41 @@ description: 'Write a program to print 24 hours of day with suitable suffixes li # luc041.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to print 24 hours of day with suitable suffixes like AM, PM, Noon and Midnight. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc041.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc041.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc041.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc041.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc041.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc042.md b/docs-new/semester_1/letusc/luc042.md @@ -5,24 +5,41 @@ description: 'Write a program to produce the following output : 1 2 3 4 # luc042.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to produce the following output : 1 2 3 4 5 6 7 8 9 10 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc042.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc042.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc042.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc042.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc042.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/luc043.md b/docs-new/semester_1/letusc/luc043.md @@ -5,24 +5,41 @@ description: 'Write a program to find the grace marks for a student using switch # luc043.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc043.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc043.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc043.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc043.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc043.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc044.md b/docs-new/semester_1/letusc/luc044.md @@ -5,24 +5,41 @@ description: 'Any year is entered through the keyboard. Write a function to dete # luc044.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Any year is entered through the keyboard. Write a function to determine whether the year is aleap year or not. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc044.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc044.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc044.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc044.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc044.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc045.md b/docs-new/semester_1/letusc/luc045.md @@ -5,24 +5,41 @@ description: 'A position integer is entered through the keyboard. Write a Functi # luc045.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc045.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc045.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc045.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc045.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc045.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc046.md b/docs-new/semester_1/letusc/luc046.md @@ -5,24 +5,41 @@ description: 'Given three variables x, y, z, write a function to circularly shif # luc046.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc046.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc046.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc046.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc046.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc046.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc047.md b/docs-new/semester_1/letusc/luc047.md @@ -5,24 +5,41 @@ description: 'Define a function that receives weight of a commodity in kilograms # luc047.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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() -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc047.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc047.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc047.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc047.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc047.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/luc048.md b/docs-new/semester_1/letusc/luc048.md @@ -5,24 +5,41 @@ description: 'Define a function to compute the distance between two points and u # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc048.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc048.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc048.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc048.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc048.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc049.md b/docs-new/semester_1/letusc/luc049.md @@ -5,24 +5,41 @@ description: 'A positive integer is entered through the keyboard, write a functi # luc049.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc049.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc049.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc049.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc049.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc049.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc050.md b/docs-new/semester_1/letusc/luc050.md @@ -5,24 +5,41 @@ description: 'Write a recursive function to obtain the sum of first 25 natural n # luc050.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a recursive function to obtain the sum of first 25 natural numbers. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc050.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc050.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc050.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc050.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc050.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc051.md b/docs-new/semester_1/letusc/luc051.md @@ -5,24 +5,41 @@ description: 'Tower of Hanoi: Write a program to print out the sequence in which # luc051.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc051.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc051.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc051.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc051.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc051.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc052.md b/docs-new/semester_1/letusc/luc052.md @@ -5,24 +5,41 @@ description: 'If a macro is not getting expanded as per your expectation, how wi # luc052.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc052.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc052.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc052.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc052.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc052.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc053.md b/docs-new/semester_1/letusc/luc053.md @@ -5,24 +5,41 @@ description: 'Write macro definitions for: Mean, Absolute value, Uppercase to Lo # luc053.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write macro definitions for: Mean, Absolute value, Uppercase to Lowercase, Biggest of three. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc053.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc053.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc053.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc053.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc053.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc054.md b/docs-new/semester_1/letusc/luc054.md @@ -5,24 +5,41 @@ description: 'Use ''interest.h'' macros to calculate Simple Interest and Amount. # luc054.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Use 'interest.h' macros to calculate Simple Interest and Amount. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc054.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc054.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc054.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc054.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc054.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc055.md b/docs-new/semester_1/letusc/luc055.md @@ -5,24 +5,41 @@ description: 'Twenty-five numbers are entered from the keyboard into an array. W # luc055.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc055.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc055.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc055.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc055.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc055.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc056.md b/docs-new/semester_1/letusc/luc056.md @@ -5,24 +5,41 @@ description: 'If an array arr contains n elements, then write a program to check # luc056.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc056.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc056.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc056.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc056.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc056.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc057.md b/docs-new/semester_1/letusc/luc057.md @@ -5,24 +5,41 @@ description: 'Write a program using pointers to find the smallest number in an a # luc057.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program using pointers to find the smallest number in an array of 25 integers. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc057.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc057.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc057.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc057.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc057.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc058.md b/docs-new/semester_1/letusc/luc058.md @@ -5,24 +5,41 @@ description: 'Implement the Insertion Sort algorithm shown in Figure 13.3 on a s # luc058.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Implement the Insertion Sort algorithm shown in Figure 13.3 on a set of 25 numbers. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc058.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc058.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc058.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc058.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc058.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc059.md b/docs-new/semester_1/letusc/luc059.md @@ -5,24 +5,41 @@ description: 'Write a program which initializes an integer array of 10 elements # luc059.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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(). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc059.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc059.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc059.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc059.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc059.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc060.md b/docs-new/semester_1/letusc/luc060.md @@ -5,24 +5,41 @@ description: 'For the following set of sample data, compute the standard deviati # luc060.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc060.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc060.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc060.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc060.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc060.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc061.md b/docs-new/semester_1/letusc/luc061.md @@ -5,24 +5,41 @@ description: 'The area of a triangle can be computed by the sine law. Given 6 tr # luc061.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc061.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc061.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc061.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc061.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc061.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc062.md b/docs-new/semester_1/letusc/luc062.md @@ -5,24 +5,41 @@ description: 'For the following set of n data points (x, y), write a program to # luc062.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement For the following set of n data points (x, y), write a program to compute the correlation coefficient r. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc062.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc062.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc062.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc062.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc062.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc063.md b/docs-new/semester_1/letusc/luc063.md @@ -5,24 +5,41 @@ description: 'The X and Y coordinates of 10 different points are entered through # luc063.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc063.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc063.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc063.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc063.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc063.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc064.md b/docs-new/semester_1/letusc/luc064.md @@ -5,24 +5,41 @@ description: 'Simulate a Dequeue (Double Ended Queue) using an array. Support: r # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc064.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc064.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc064.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc064.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc064.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/luc065.md b/docs-new/semester_1/letusc/luc065.md @@ -5,24 +5,41 @@ description: 'Write a program to find if a square matrix is symmetric.' # luc065.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find if a square matrix is symmetric. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc065.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc065.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc065.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc065.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc065.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc066.md b/docs-new/semester_1/letusc/luc066.md @@ -5,24 +5,41 @@ description: 'Write a program to add two 6 x 6 matrices.' # luc066.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to add two 6 x 6 matrices. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc066.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc066.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc066.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc066.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc066.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc067.md b/docs-new/semester_1/letusc/luc067.md @@ -5,24 +5,41 @@ description: 'Write a program to multiply any two 3 x 3 matrices.' # luc067.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to multiply any two 3 x 3 matrices. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc067.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc067.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc067.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc067.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc067.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc068.md b/docs-new/semester_1/letusc/luc068.md @@ -5,24 +5,41 @@ description: 'Given an array p[5], write a function to shift it circularly left # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc068.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc068.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc068.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc068.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc068.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc069.md b/docs-new/semester_1/letusc/luc069.md @@ -5,24 +5,41 @@ description: 'If the string "Alice in wonder land" is fed to the following scanf # luc069.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc069.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc069.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc069.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc069.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc069.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc070.md b/docs-new/semester_1/letusc/luc070.md @@ -5,24 +5,41 @@ description: 'Write a program that receives a 10-digit ISBN number, computes the # luc070.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc070.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc070.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc070.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc070.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc070.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc071.md b/docs-new/semester_1/letusc/luc071.md @@ -5,24 +5,41 @@ description: 'Write a program that receives a 16-digit Credit Card number and ch # luc071.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc071.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc071.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc071.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc071.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc071.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc072.md b/docs-new/semester_1/letusc/luc072.md @@ -5,24 +5,41 @@ description: 'How many bytes in memory would be occupied by the following array # luc072.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc072.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc072.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc072.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc072.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc072.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc073.md b/docs-new/semester_1/letusc/luc073.md @@ -5,24 +5,41 @@ description: 'Write a program to delete all vowels from a sentence. Assume that # luc073.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to delete all vowels from a sentence. Assume that the sentence is not more than 80 characters long. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc073.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc073.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc073.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc073.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc073.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc074.md b/docs-new/semester_1/letusc/luc074.md @@ -5,24 +5,41 @@ description: 'Write a program that will read a line and delete from it all occur # luc074.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program that will read a line and delete from it all occurrences of the word 'the'. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc074.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc074.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc074.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc074.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc074.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc075.md b/docs-new/semester_1/letusc/luc075.md @@ -5,24 +5,41 @@ description: 'Write a program that stores a set of names of individuals and abbr # luc075.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program that stores a set of names of individuals and abbreviates the first and middle name to their first letter. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc075.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc075.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc075.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc075.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc075.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc076.md b/docs-new/semester_1/letusc/luc076.md @@ -5,24 +5,41 @@ description: 'Write a program to count the number of occurrences of any two vowe # luc076.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to count the number of occurrences of any two vowels in succession in a line of text. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc076.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc076.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc076.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc076.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc076.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc077.md b/docs-new/semester_1/letusc/luc077.md @@ -5,24 +5,41 @@ description: 'Write a program that receives an integer (less than or equal to ni # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc077.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc077.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc077.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc077.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc077.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc078.md b/docs-new/semester_1/letusc/luc078.md @@ -5,24 +5,41 @@ description: 'Create a structure ''student'' (Roll, Name, Dept, Course, Year). W # luc078.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc078.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc078.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc078.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc078.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc078.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc079.md b/docs-new/semester_1/letusc/luc079.md @@ -5,24 +5,41 @@ description: 'Create a structure for bank customers (Acc no, Name, Balance). Wri # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement 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 -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc079.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc079.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc079.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc079.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc079.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc080.md b/docs-new/semester_1/letusc/luc080.md @@ -5,24 +5,41 @@ description: 'Automobile engine parts (Serial AA0-FF9, Year, Material, Qty). Ret # luc080.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Automobile engine parts (Serial AA0-FF9, Year, Material, Qty). Retrieve parts between serial numbers BB1 and CC6. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc080.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc080.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc080.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc080.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc080.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc081.md b/docs-new/semester_1/letusc/luc081.md @@ -5,24 +5,41 @@ description: 'Create structure for Cricketers (Name, Age, Tests, Avg Runs). Sort # luc081.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Create structure for Cricketers (Name, Age, Tests, Avg Runs). Sort 20 records by average runs using qsort(). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc081.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc081.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc081.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc081.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc081.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc082.md b/docs-new/semester_1/letusc/luc082.md @@ -5,24 +5,41 @@ description: 'Structure ''employee'' (Code, Name, Date of Joining). Display name # luc082.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Structure 'employee' (Code, Name, Date of Joining). Display names of employees with tenure >= 3 years. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc082.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc082.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc082.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc082.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc082.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc083.md b/docs-new/semester_1/letusc/luc083.md @@ -5,24 +5,41 @@ description: 'Library menu-driven program (Add, Display, List by Author, List by # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Library menu-driven program (Add, Display, List by Author, List by Title, Count, List sorted). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc083.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc083.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc083.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc083.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc083.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc084.md b/docs-new/semester_1/letusc/luc084.md @@ -5,24 +5,41 @@ description: 'Define a function that compares two given dates. Return 0 if equal # luc084.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Define a function that compares two given dates. Return 0 if equal, otherwise return 1. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc084.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc084.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc084.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc084.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc084.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/letusc/luc085.md b/docs-new/semester_1/letusc/luc085.md @@ -5,24 +5,41 @@ description: 'Suppose a file contains student records (Name, Age). Write a progr # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc085.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc085.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc085.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc085.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc085.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc086.md b/docs-new/semester_1/letusc/luc086.md @@ -5,24 +5,41 @@ description: 'Write a program to copy contents of one file to another. While doi # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc086.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc086.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc086.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc086.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc086.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc087.md b/docs-new/semester_1/letusc/luc087.md @@ -5,24 +5,41 @@ description: 'Write a program that merges lines alternately from two files and w # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc087.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc087.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc087.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc087.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc087.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc088.md b/docs-new/semester_1/letusc/luc088.md @@ -5,24 +5,41 @@ description: 'Write a program to encrypt/decrypt a file using: (1) Offset cipher # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to encrypt/decrypt a file using: (1) Offset cipher (2) Substitution cipher. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc088.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc088.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc088.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc088.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc088.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc089.md b/docs-new/semester_1/letusc/luc089.md @@ -5,24 +5,41 @@ description: 'Update ''CUSTOMER.DAT'' balance using ''TRANSACTIONS.DAT'' (Deposi # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Update 'CUSTOMER.DAT' balance using 'TRANSACTIONS.DAT' (Deposit/Withdrawal). Ensure balance doesn't fall below Rs. 100 on withdrawal. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc089.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc089.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc089.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc089.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc089.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc090.md b/docs-new/semester_1/letusc/luc090.md @@ -5,24 +5,41 @@ description: 'Read employee records (code, name, date, salary), sort them by Dat # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Read employee records (code, name, date, salary), sort them by Date of Joining, and write to a target file. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc090.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc090.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc090.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc090.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc090.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc091.md b/docs-new/semester_1/letusc/luc091.md @@ -5,24 +5,41 @@ description: 'Read ''blood donors'' file (Name, Address, Age, Blood Type). Print # luc091.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Read 'blood donors' file (Name, Address, Age, Blood Type). Print donors with Age < 25 and Blood Type 2. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc091.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc091.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc091.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc091.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc091.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc092.md b/docs-new/semester_1/letusc/luc092.md @@ -5,24 +5,41 @@ description: 'Write a program to store names in a file. Display the n-th name in # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc092.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc092.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc092.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc092.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc092.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc093.md b/docs-new/semester_1/letusc/luc093.md @@ -5,24 +5,41 @@ description: 'Update Master file (Roll, Name) using Transaction file (Roll, Code # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Update Master file (Roll, Name) using Transaction file (Roll, Code Add/Delete). Both files are sorted by Roll. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc093.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc093.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc093.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc093.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc093.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc094.md b/docs-new/semester_1/letusc/luc094.md @@ -5,24 +5,41 @@ description: 'Read a text file, delete the words ''a'', ''the'', ''an'' and repl # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement 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 -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc094.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc094.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc094.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc094.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc094.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc095.md b/docs-new/semester_1/letusc/luc095.md @@ -5,24 +5,41 @@ description: 'Write a program that can read a file and display its contents. The # luc095.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc095.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc095.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc095.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc095.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc095.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc096.md b/docs-new/semester_1/letusc/luc096.md @@ -5,24 +5,41 @@ description: 'Write a program that can copy the contents of one file to another. # luc096.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc096.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc096.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc096.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc096.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc096.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc097.md b/docs-new/semester_1/letusc/luc097.md @@ -5,24 +5,41 @@ description: 'Write a program using command-line arguments to search for a word # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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> -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc097.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc097.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc097.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc097.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc097.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc098.md b/docs-new/semester_1/letusc/luc098.md @@ -5,24 +5,41 @@ description: 'Write a calculator utility using command line arguments.\nUsage: c # luc098.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a calculator utility using command line arguments.\nUsage: calc <switch> <n> <m>\nwhere switch is arithmetic operator or comparison operator. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc098.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc098.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc098.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc098.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc098.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc099.md b/docs-new/semester_1/letusc/luc099.md @@ -5,24 +5,41 @@ description: 'Read an integer ''game'' representing sports won by a college. Det # luc099.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc099.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc099.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc099.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc099.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc099.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc100.md b/docs-new/semester_1/letusc/luc100.md @@ -5,24 +5,41 @@ description: 'Determine if an animal is Carnivore/Herbivore and its type (Canine # luc100.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Determine if an animal is Carnivore/Herbivore and its type (Canine, Feline, Cetacean, Marsupial) based on bits in an integer. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc100.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc100.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc100.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc100.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc100.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc101.md b/docs-new/semester_1/letusc/luc101.md @@ -5,24 +5,41 @@ description: 'Decode student information (Year, Stream, Room No) packed into an # luc101.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Decode student information (Year, Stream, Room No) packed into an integer array. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc101.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc101.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc101.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc101.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc101.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc102.md b/docs-new/semester_1/letusc/luc102.md @@ -5,24 +5,41 @@ description: 'What will be the output of the provided program segment involving # luc102.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement What will be the output of the provided program segment involving bitwise operators? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc102.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc102.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc102.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc102.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc102.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc103.md b/docs-new/semester_1/letusc/luc103.md @@ -5,24 +5,41 @@ description: 'What is the hexadecimal equivalent of the following binary numbers # luc103.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement What is the hexadecimal equivalent of the following binary numbers? -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc103.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc103.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc103.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc103.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc103.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc104.md b/docs-new/semester_1/letusc/luc104.md @@ -5,24 +5,41 @@ description: 'Rewrite expressions using bitwise compound assignment operators.' # luc104.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Rewrite expressions using bitwise compound assignment operators. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc104.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc104.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc104.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc104.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc104.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc105.md b/docs-new/semester_1/letusc/luc105.md @@ -5,24 +5,41 @@ description: 'Write a function checkbits(x, p, n) which returns true if all ''n' # luc105.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a function checkbits(x, p, n) which returns true if all 'n' bits starting from position 'p' are turned on. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc105.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc105.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc105.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc105.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc105.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc106.md b/docs-new/semester_1/letusc/luc106.md @@ -5,24 +5,41 @@ description: 'Write a program to scan an 8-bit number and check whether its 3rd, # luc106.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to scan an 8-bit number and check whether its 3rd, 6th and 7th bit is on. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc106.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc106.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc106.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc106.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc106.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc107.md b/docs-new/semester_1/letusc/luc107.md @@ -5,24 +5,41 @@ description: 'Receive an unsigned 16-bit integer and exchange the contents of it # luc107.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Receive an unsigned 16-bit integer and exchange the contents of its 2 bytes using bitwise operators. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc107.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc107.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc107.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc107.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc107.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc108.md b/docs-new/semester_1/letusc/luc108.md @@ -5,24 +5,41 @@ description: 'Receive an 8-bit number and exchange its higher 4 bits with lower # luc108.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Receive an 8-bit number and exchange its higher 4 bits with lower 4 bits. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc108.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc108.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc108.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc108.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc108.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc109.md b/docs-new/semester_1/letusc/luc109.md @@ -5,24 +5,41 @@ description: 'Receive an 8-bit number and set its odd bits to 1.' # luc109.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Receive an 8-bit number and set its odd bits to 1. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc109.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc109.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc109.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc109.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc109.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc110.md b/docs-new/semester_1/letusc/luc110.md @@ -5,24 +5,41 @@ description: 'Receive an 8-bit number. Check if 3rd and 5th bits are ON. If yes, # luc110.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Receive an 8-bit number. Check if 3rd and 5th bits are ON. If yes, put them OFF. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc110.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc110.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc110.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc110.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc110.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc111.md b/docs-new/semester_1/letusc/luc111.md @@ -5,24 +5,41 @@ description: 'Receive an 8-bit number. Check if 3rd and 5th bits are OFF. If yes # luc111.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Receive an 8-bit number. Check if 3rd and 5th bits are OFF. If yes, put them ON. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc111.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc111.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc111.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc111.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc111.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc112.md b/docs-new/semester_1/letusc/luc112.md @@ -5,24 +5,41 @@ description: 'Rewrite the showbits() function using the _BV macro.' # luc112.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Rewrite the showbits() function using the _BV macro. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc112.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc112.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc112.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc112.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc112.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc113.md b/docs-new/semester_1/letusc/luc113.md @@ -5,24 +5,41 @@ description: 'Store date in a structure using bit fields (day: 5 bits, month: 4 # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc113.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc113.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc113.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc113.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc113.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc114.md b/docs-new/semester_1/letusc/luc114.md @@ -5,24 +5,41 @@ description: 'Store insurance policy holder info (gender, minor/major, policy na # luc114.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Store insurance policy holder info (gender, minor/major, policy name, duration) using bit-fields. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc114.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc114.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc114.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc114.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc114.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc115.md b/docs-new/semester_1/letusc/luc115.md @@ -5,24 +5,41 @@ description: 'Obtain MD5 checksum of the following strings and check whether the # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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." -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc115.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc115.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc115.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc115.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc115.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc116.md b/docs-new/semester_1/letusc/luc116.md @@ -5,24 +5,41 @@ description: 'Compile any C program into a .EXE or a .out file. Obtain SHA256 ch # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Compile any C program into a .EXE or a .out file. Obtain SHA256 checksum of the file. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc116.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc116.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc116.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc116.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc116.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc117.md b/docs-new/semester_1/letusc/luc117.md @@ -5,24 +5,41 @@ description: 'Write a program to convert a given text into an audio file using O # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to convert a given text into an audio file using OpenAI Audio API (TTS). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc117.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc117.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc117.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc117.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc117.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc118.md b/docs-new/semester_1/letusc/luc118.md @@ -5,24 +5,41 @@ description: 'Write a program to generate 4 images of birds flying in the sky wi # luc118.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc118.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc118.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc118.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc118.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc118.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/luc119.md b/docs-new/semester_1/letusc/luc119.md @@ -5,24 +5,41 @@ description: 'Write a program to analyse a given sentence to detect the mood of # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 08 Feb 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to analyse a given sentence to detect the mood of the sentence using OpenAI Chat Completion API. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc119.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc119.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/luc119.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/luc119.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [luc119.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/letusc/lucproblem001.md b/docs-new/semester_1/letusc/lucproblem001.md @@ -5,24 +5,41 @@ description: 'Consider a currency system in which there are notes of six denomin # lucproblem001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem001.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/lucproblem002.md b/docs-new/semester_1/letusc/lucproblem002.md @@ -5,24 +5,41 @@ description: 'A year is entered through the keyboard, write a program to determi # lucproblem002.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 || . -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem002.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/lucproblem003.md b/docs-new/semester_1/letusc/lucproblem003.md @@ -5,24 +5,41 @@ description: 'If a character is entered through the keyboard, Write a program to # lucproblem003.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem003.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/lucproblem004.md b/docs-new/semester_1/letusc/lucproblem004.md @@ -5,24 +5,41 @@ description: 'If the lengths of three sides of a triangle are entered through th # lucproblem004.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem004.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/lucproblem005.md b/docs-new/semester_1/letusc/lucproblem005.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate overtime pay of 10 employees. Overtim # lucproblem005.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem005.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem005.c] #include <stdio.h> #include <conio.h> diff --git a/docs-new/semester_1/letusc/lucproblem006.md b/docs-new/semester_1/letusc/lucproblem006.md @@ -5,24 +5,41 @@ description: 'Write a program to find the factorial value of any number entered # lucproblem006.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find the factorial value of any number entered through the keyboard. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem006.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem006.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/lucproblem007.md b/docs-new/semester_1/letusc/lucproblem007.md @@ -5,24 +5,41 @@ description: 'Two numbers are entered through the keyboard. Write a program to f # lucproblem007.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem007.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem007.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/letusc/lucproblem008.md b/docs-new/semester_1/letusc/lucproblem008.md @@ -5,24 +5,41 @@ description: 'Write a problem to print all the prime numbers from 1 to 300.' # lucproblem008.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a problem to print all the prime numbers from 1 to 300. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem008.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/lucproblem009.md b/docs-new/semester_1/letusc/lucproblem009.md @@ -5,24 +5,41 @@ description: 'Write a program to add first seven terms of the following series u # lucproblem009.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to add first seven terms of the following series using a for loop. 1 / 1! + 2 / 2! + 3 / 3! + ... -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem009.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem009.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem009.c] #include <stdio.h> #define N 7 // update N here diff --git a/docs-new/semester_1/letusc/lucproblem010-complex.md b/docs-new/semester_1/letusc/lucproblem010-complex.md @@ -5,24 +5,41 @@ description: 'Write a program to generate all combinations (permutations) of 1, # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010-complex.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010-complex.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010-complex.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010-complex.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem010-complex.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/lucproblem010.md b/docs-new/semester_1/letusc/lucproblem010.md @@ -5,24 +5,41 @@ description: 'Write a program to generate all combination of 1, 2 and 3 using fo # lucproblem010.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to generate all combination of 1, 2 and 3 using for loop. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem010.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/lucproblem011.md b/docs-new/semester_1/letusc/lucproblem011.md @@ -5,24 +5,41 @@ description: 'Write a menu driven program which has following options : 1. Facto # lucproblem011.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem011.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem011.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem011.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/lucproblem012.md b/docs-new/semester_1/letusc/lucproblem012.md @@ -5,24 +5,41 @@ description: 'Write a Function power(a, b), to calculate the value of a raised t # lucproblem012.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a Function power(a, b), to calculate the value of a raised to b -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem012.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem012.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem012.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/lucproblem013.md b/docs-new/semester_1/letusc/lucproblem013.md @@ -5,24 +5,41 @@ description: 'Define a function to convert any given year into its Roman equival # lucproblem013.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem013.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem013.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem013.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/lucproblem014-short.md b/docs-new/semester_1/letusc/lucproblem014-short.md @@ -5,24 +5,41 @@ description: 'Write a function that receives integers and returns the sum, avera # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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() -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014-short.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014-short.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014-short.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014-short.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem014-short.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/lucproblem014.md b/docs-new/semester_1/letusc/lucproblem014.md @@ -5,24 +5,41 @@ description: 'Write a function that receives integers and returns the sum, avera # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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() -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem014.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/letusc/lucproblem015.md b/docs-new/semester_1/letusc/lucproblem015.md @@ -5,24 +5,41 @@ description: 'Write a program that defines a function that calculates power of o # lucproblem015.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem015.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem015.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem015.c] #include <stdio.h> diff --git a/docs-new/semester_1/letusc/lucproblem016.md b/docs-new/semester_1/letusc/lucproblem016.md @@ -5,24 +5,41 @@ description: 'Figure 9.4 shows three memory locations and values stored in them. # lucproblem016.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem016.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem016.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/letusc/lucproblem016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/letusc/lucproblem016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [lucproblem016.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/external_1.md b/docs-new/semester_1/practice-c/external_1.md @@ -7,8 +7,26 @@ description: 'C program — external_1.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_1.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_1.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_1.c] #include<stdio.h> diff --git a/docs-new/semester_1/practice-c/external_2.md b/docs-new/semester_1/practice-c/external_2.md @@ -7,8 +7,26 @@ description: 'C program — external_2.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_2.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_2.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_2.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_2.c] #include<stdio.h> diff --git a/docs-new/semester_1/practice-c/external_3.md b/docs-new/semester_1/practice-c/external_3.md @@ -7,8 +7,26 @@ description: 'C program — external_3.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_3.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_3.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_3.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_3.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_3.c] #include<stdio.h> diff --git a/docs-new/semester_1/practice-c/external_4.md b/docs-new/semester_1/practice-c/external_4.md @@ -7,8 +7,26 @@ description: 'C program — external_4.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_4.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_4.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_4.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_4.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_4.c] #include<stdio.h> diff --git a/docs-new/semester_1/practice-c/external_5.md b/docs-new/semester_1/practice-c/external_5.md @@ -7,8 +7,26 @@ description: 'C program — external_5.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_5.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_5.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_5.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_5.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_5.c] #include<stdio.h> #include<string.h> diff --git a/docs-new/semester_1/practice-c/external_6.md b/docs-new/semester_1/practice-c/external_6.md @@ -7,8 +7,26 @@ description: 'C program — external_6.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_6.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_6.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_6.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_6.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_6.c] #include<stdio.h> diff --git a/docs-new/semester_1/practice-c/external_7.md b/docs-new/semester_1/practice-c/external_7.md @@ -7,8 +7,26 @@ description: 'C program — external_7.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_7.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_7.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_7.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_7.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_7.c] #include<stdio.h> diff --git a/docs-new/semester_1/practice-c/external_8.md b/docs-new/semester_1/practice-c/external_8.md @@ -7,8 +7,26 @@ description: 'C program — external_8.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_8.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_8.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/external_8.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/external_8.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [external_8.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-01.md b/docs-new/semester_1/practice-c/pc-ip-01.md @@ -5,24 +5,41 @@ description: 'Question 1: Write a program to compute the sum and product of digi # pc-ip-01.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 1: Write a program to compute the sum and product of digits of an integer using user-defined functions. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-01.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-01.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-01.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-02.md b/docs-new/semester_1/practice-c/pc-ip-02.md @@ -5,24 +5,41 @@ description: 'Question 2: Write a program to reverse a non-negative integer usin # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 2: Write a program to reverse a non-negative integer using a function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-02.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-02.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-02.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-03.md b/docs-new/semester_1/practice-c/pc-ip-03.md @@ -5,24 +5,41 @@ description: 'Question 3: Write a program to compute the sum of the first n term # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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+... -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-03.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-03.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-03.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-03.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-04.md b/docs-new/semester_1/practice-c/pc-ip-04.md @@ -5,24 +5,41 @@ description: 'Question 4: Write a function to check whether a number is prime or # pc-ip-04.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-04.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-04.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-04.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-04.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-05.md b/docs-new/semester_1/practice-c/pc-ip-05.md @@ -5,24 +5,41 @@ description: 'Question 5: Write a function to check whether a given string is a # pc-ip-05.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-05.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-05.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-05.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-05.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-06.md b/docs-new/semester_1/practice-c/pc-ip-06.md @@ -5,24 +5,41 @@ description: 'Question 6: Write a program using a function to compute and displa # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 6: Write a program using a function to compute and display all factors of a given number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-06.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-06.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-06.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-06.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-07.md b/docs-new/semester_1/practice-c/pc-ip-07.md @@ -5,24 +5,41 @@ description: 'Question 7: Write a program to swap two numbers using pointers usi # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 7: Write a program to swap two numbers using pointers using user-defined function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-07.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-07.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-07.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-07.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-08.md b/docs-new/semester_1/practice-c/pc-ip-08.md @@ -5,24 +5,41 @@ description: 'Question 8: Write a program that takes the radius of a circle as i # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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(). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-08.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-08.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-08.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-08.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-09.md b/docs-new/semester_1/practice-c/pc-ip-09.md @@ -5,24 +5,41 @@ description: 'Question 9: Write a program to find the sum of n elements entered # pc-ip-09.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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()). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-09.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-09.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-09.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-09.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-10.md b/docs-new/semester_1/practice-c/pc-ip-10.md @@ -5,24 +5,41 @@ description: 'Question 10: Write a function that reverses each elements of an ar # pc-ip-10.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-10.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-10.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-10.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-10.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-11.md b/docs-new/semester_1/practice-c/pc-ip-11.md @@ -5,24 +5,41 @@ description: 'Question 11: Write a program to merge two sorted integer arrays to # pc-ip-11.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 11: Write a program to merge two sorted integer arrays to form a single sorted array. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-11.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-11.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-11.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-11.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-12.md b/docs-new/semester_1/practice-c/pc-ip-12.md @@ -5,24 +5,41 @@ description: 'Question 12: Write a program that reads 10 integers into an array # pc-ip-12.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-12.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-12.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-12.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-12.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-12.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-13.md b/docs-new/semester_1/practice-c/pc-ip-13.md @@ -5,24 +5,41 @@ description: 'Question 13: Write a program to display the Fibonacci series using # pc-ip-13.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 13: Write a program to display the Fibonacci series using recursive function and iterative function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-13.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-13.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-13.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-13.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-13.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-14.md b/docs-new/semester_1/practice-c/pc-ip-14.md @@ -5,24 +5,41 @@ description: 'Question 14: Write a program to calculate the factorial of a numbe # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 14: Write a program to calculate the factorial of a number using recursive and iterative function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-14.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-14.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-14.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-14.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-14.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-15.md b/docs-new/semester_1/practice-c/pc-ip-15.md @@ -5,24 +5,41 @@ description: 'Question 15: Write a program to calculate the GCD of two numbers u # pc-ip-15.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 15: Write a program to calculate the GCD of two numbers using recursive and iterative function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-15.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-15.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-15.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-15.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-16.md b/docs-new/semester_1/practice-c/pc-ip-16.md @@ -5,24 +5,41 @@ description: 'Question 16: Write a C program that includes a user-defined functi # pc-ip-16.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 16: Write a C program that includes a user-defined function named isArmstrong with the signature int isArmstrong(int num);. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-16.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-16.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-16.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-16.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-16.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-17.md b/docs-new/semester_1/practice-c/pc-ip-17.md @@ -5,24 +5,41 @@ description: 'Question 17: Write a C program that includes a user-defined functi # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Question 17: Write a C program that includes a user-defined function named isPerfect with the signature int isPerfect(int num);. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-17.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-17.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-17.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-17.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-17.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-18.md b/docs-new/semester_1/practice-c/pc-ip-18.md @@ -5,24 +5,41 @@ description: 'Question 18: Write a C program that includes a user-defined functi # pc-ip-18.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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);. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-18.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-18.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-18.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-18.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-18.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-19.md b/docs-new/semester_1/practice-c/pc-ip-19.md @@ -5,24 +5,41 @@ description: 'Question 19: Write a C program that includes a user-defined functi # pc-ip-19.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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);. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-19.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-19.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-19.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-19.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-19.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc-ip-20.md b/docs-new/semester_1/practice-c/pc-ip-20.md @@ -5,24 +5,41 @@ description: 'Question 20: Write a C program that defines an array of integers, # pc-ip-20.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 05 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 05 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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);. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-20.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-20.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc-ip-20.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc-ip-20.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc-ip-20.c] #include<stdio.h> #include<stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc001.md b/docs-new/semester_1/practice-c/pc001.md @@ -5,24 +5,41 @@ description: 'Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 for n # pc001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 for n = 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc001.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc002.md b/docs-new/semester_1/practice-c/pc002.md @@ -5,24 +5,41 @@ description: 'Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 for # pc002.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 for n = 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc002.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc003.md b/docs-new/semester_1/practice-c/pc003.md @@ -5,24 +5,41 @@ description: 'Pattern : 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 for # pc003.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern : 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 for n = 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc003.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc004.md b/docs-new/semester_1/practice-c/pc004.md @@ -5,24 +5,41 @@ description: 'Pattern : 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 for n # pc004.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern : 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 for n = 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc004.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc005.md b/docs-new/semester_1/practice-c/pc005.md @@ -5,24 +5,41 @@ description: 'Pattern : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 for # pc005.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern : 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 for n = 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc005.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc005.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc006.md b/docs-new/semester_1/practice-c/pc006.md @@ -5,24 +5,41 @@ description: 'Prime number check' # pc006.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Prime number check -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc006.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc006.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/practice-c/pc007.md b/docs-new/semester_1/practice-c/pc007.md @@ -5,24 +5,41 @@ description: 'Armstrong number check only for three digit' # pc007.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Armstrong number check only for three digit -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc007.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc007.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc008.md b/docs-new/semester_1/practice-c/pc008.md @@ -5,24 +5,41 @@ description: 'Factorial upto N' # pc008.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Factorial upto N -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc008.c] #include <stdio.h> diff --git a/docs-new/semester_1/practice-c/pc009.md b/docs-new/semester_1/practice-c/pc009.md @@ -5,24 +5,41 @@ description: 'Sum of digit' # pc009.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Sum of digit -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc009.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc009.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc009.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc010.md b/docs-new/semester_1/practice-c/pc010.md @@ -5,24 +5,41 @@ description: 'Reverse a number' # pc010.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Reverse a number -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc010.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc010.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc010.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/practice-c/pc011.md b/docs-new/semester_1/practice-c/pc011.md @@ -5,24 +5,41 @@ description: 'Write a C program that takes two positive integers, L (Lower Bound # pc011.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc011.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc011.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc011.c] #include <stdio.h> #define true 1 diff --git a/docs-new/semester_1/practice-c/pc012.md b/docs-new/semester_1/practice-c/pc012.md @@ -5,24 +5,41 @@ description: 'Write a C function that receives a string (character array) and us # pc012.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc012.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc012.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc012.c] #include <stdio.h> #include <ctype.h> diff --git a/docs-new/semester_1/practice-c/pc013.md b/docs-new/semester_1/practice-c/pc013.md @@ -5,24 +5,41 @@ description: 'Write a C program that defines a structure named Book with attribu # pc013.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 29 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 29 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc013.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc013.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc013.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc014.md b/docs-new/semester_1/practice-c/pc014.md @@ -5,24 +5,41 @@ description: 'Write a c program that defines a structure Student with the follow # pc014.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 30 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 30 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc014.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc014.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc014.c] #include<stdio.h> #include<stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc015.md b/docs-new/semester_1/practice-c/pc015.md @@ -5,24 +5,41 @@ description: 'Write a C program to reverse a string using a recursive function.' # pc015.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 30 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 30 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a C program to reverse a string using a recursive function. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc015.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc015.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc015.c] #include<stdio.h> #include<stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc016.md b/docs-new/semester_1/practice-c/pc016.md @@ -5,24 +5,41 @@ description: 'Write a c program that records book data from user and stores them # pc016.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 31 Mar 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 31 Mar 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a c program that records book data from user and stores them in to a file. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc016.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc016.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc016.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/practice-c/pc017.md b/docs-new/semester_1/practice-c/pc017.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate the difference between two time perio # pc017.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 21 Apr 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 21 Apr 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate the difference between two time periods using structures. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc017.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc017.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/practice-c/pc017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/practice-c/pc017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [pc017.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/temp/maheswar01.md b/docs-new/semester_1/temp/maheswar01.md @@ -7,8 +7,26 @@ description: 'C program — maheswar01.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar01.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar01.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [maheswar01.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/temp/maheswar02.md b/docs-new/semester_1/temp/maheswar02.md @@ -7,8 +7,26 @@ description: 'C program — maheswar02.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar02.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar02.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/maheswar02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/maheswar02.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [maheswar02.c] #include<stdio.h> #include<stdlib.h> diff --git a/docs-new/semester_1/temp/sudipto1.md b/docs-new/semester_1/temp/sudipto1.md @@ -5,24 +5,41 @@ description: 'A smart home security controller monitors the state of several sen # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudipto1.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudipto1.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudipto1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudipto1.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [sudipto1.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/temp/sudiptoown01.md b/docs-new/semester_1/temp/sudiptoown01.md @@ -7,8 +7,26 @@ description: 'C program — sudiptoown01.c' ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudiptoown01.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudiptoown01.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/temp/sudiptoown01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/temp/sudiptoown01.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [sudiptoown01.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-001.md b/docs-new/semester_1/tuition-c/APC-PRAC-001.md @@ -5,24 +5,41 @@ description: 'WAP to calculate area and perimeter of a rectangle by accepting le # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate area and perimeter of a rectangle by accepting length and breadth as input. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-001.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-001.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-002.md b/docs-new/semester_1/tuition-c/APC-PRAC-002.md @@ -5,24 +5,41 @@ description: 'WAP to calculate area of a circle using math library method. Take # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate area of a circle using math library method. Take radius of the circle as input. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-002.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-003.md b/docs-new/semester_1/tuition-c/APC-PRAC-003.md @@ -5,24 +5,41 @@ description: 'WAP to accept diagonal of a square and calculate area, parimeter' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to accept diagonal of a square and calculate area, parimeter -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-003.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-004.md b/docs-new/semester_1/tuition-c/APC-PRAC-004.md @@ -5,24 +5,41 @@ description: 'WAP to calculate and display radius of a circle by taking the area # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate and display radius of a circle by taking the area as input. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-004.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-005.md b/docs-new/semester_1/tuition-c/APC-PRAC-005.md @@ -5,24 +5,41 @@ description: 'WAP a program that accept number of days as input and represent it # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP a program that accept number of days as input and represent it as years, months and days. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-005.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-005.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-006.md b/docs-new/semester_1/tuition-c/APC-PRAC-006.md @@ -5,24 +5,41 @@ description: 'WAP that accept seconds as input and represent it an hours, minute # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP that accept seconds as input and represent it an hours, minutes and seconds. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-006.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-006.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-007.md b/docs-new/semester_1/tuition-c/APC-PRAC-007.md @@ -5,24 +5,41 @@ description: 'WAP that accept basic salary of an employee and display gross sala # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-007.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-007.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-008.md b/docs-new/semester_1/tuition-c/APC-PRAC-008.md @@ -5,24 +5,41 @@ description: 'WAP to multiply and divide a number by 4 without using multiplicat # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to multiply and divide a number by 4 without using multiplication and division operator. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-008.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-009.md b/docs-new/semester_1/tuition-c/APC-PRAC-009.md @@ -5,24 +5,41 @@ description: 'WAP to swap two integer variable without using Third variable.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to swap two integer variable without using Third variable. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-009.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-009.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-009.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-010.md b/docs-new/semester_1/tuition-c/APC-PRAC-010.md @@ -5,24 +5,41 @@ description: 'WAP to calculate and display the valve of the given expression : ( # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-010.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-010.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-010.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-011.md b/docs-new/semester_1/tuition-c/APC-PRAC-011.md @@ -5,24 +5,41 @@ description: 'Write a program to input positive number and check whether the num # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-011.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-011.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-011.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-012.md b/docs-new/semester_1/tuition-c/APC-PRAC-012.md @@ -5,24 +5,41 @@ description: 'Write a program to input three integer and find out second largest # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to input three integer and find out second largest -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-012.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-012.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-012.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-013.md b/docs-new/semester_1/tuition-c/APC-PRAC-013.md @@ -5,24 +5,41 @@ description: 'Write a program to input sum(p), rate of interest(r), time(t) and # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-013.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-013.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-013.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-014.md b/docs-new/semester_1/tuition-c/APC-PRAC-014.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate and display the maturity amount takin # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 % -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-014.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-014.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-014.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-015.md b/docs-new/semester_1/tuition-c/APC-PRAC-015.md @@ -5,24 +5,41 @@ description: 'Write a program to display all numbers between lb (lower bound) an # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-015.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-015.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-015.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-016.md b/docs-new/semester_1/tuition-c/APC-PRAC-016.md @@ -5,24 +5,41 @@ description: 'Write a program to check palindrome number.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check palindrome number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-016.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-016.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-016.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-017.md b/docs-new/semester_1/tuition-c/APC-PRAC-017.md @@ -5,24 +5,41 @@ description: 'Write a program to check perfect number.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check perfect number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-017.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-017.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-017.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-018.md b/docs-new/semester_1/tuition-c/APC-PRAC-018.md @@ -5,24 +5,41 @@ description: 'Write a program to check Automorphic Number.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check Automorphic Number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-018.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-018.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-018.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-018.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-018.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-019.md b/docs-new/semester_1/tuition-c/APC-PRAC-019.md @@ -5,24 +5,41 @@ description: 'Write a program to find hcf of two numbers' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find hcf of two numbers -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-019.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-019.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-019.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-019.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-019.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-020.md b/docs-new/semester_1/tuition-c/APC-PRAC-020.md @@ -5,24 +5,41 @@ description: 'Write a program to check if two number is co-prime or not' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check if two number is co-prime or not -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-020.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-020.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-020.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-020.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-020.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-021.md b/docs-new/semester_1/tuition-c/APC-PRAC-021.md @@ -5,24 +5,41 @@ description: 'Write a program to check special number (sum of digit + product of # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check special number (sum of digit + product of digit = original number) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-021.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-021.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-021.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-021.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-021.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-022.md b/docs-new/semester_1/tuition-c/APC-PRAC-022.md @@ -5,24 +5,41 @@ description: 'Write a program to accept a number and check whether the number is # APC-PRAC-022.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to accept a number and check whether the number is twisted prime or not -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-022.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-022.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-022.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-022.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-022.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-023.md b/docs-new/semester_1/tuition-c/APC-PRAC-023.md @@ -5,24 +5,41 @@ description: 'Pattern : (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, # APC-PRAC-023.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern : (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, 15, ... upto n times -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-023.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-023.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-023.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-023.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-023.c] #include <stdio.h> #include <stdbool.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-024.md b/docs-new/semester_1/tuition-c/APC-PRAC-024.md @@ -5,24 +5,41 @@ description: 'Pattern: 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-024.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-024.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-024.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-024.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-024.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-025.md b/docs-new/semester_1/tuition-c/APC-PRAC-025.md @@ -5,24 +5,41 @@ description: 'Pattern: 5 4 3 2 1 5 4 3 2 5 4 3 5 4 # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-025.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-025.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-025.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-025.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-025.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-026.md b/docs-new/semester_1/tuition-c/APC-PRAC-026.md @@ -5,24 +5,41 @@ description: 'Pattern: 5 5 4 5 4 3 5 4 3 2 5 4 3 2 # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-026.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-026.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-026.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-026.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-026.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-027.md b/docs-new/semester_1/tuition-c/APC-PRAC-027.md @@ -5,24 +5,41 @@ description: 'Pattern: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-027.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-027.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-027.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-027.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-027.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-028.md b/docs-new/semester_1/tuition-c/APC-PRAC-028.md @@ -5,24 +5,41 @@ description: 'Pattern: 1 2 3 4 5 6 7 8 9 10 # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-028.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-028.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-028.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-028.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-028.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-029.md b/docs-new/semester_1/tuition-c/APC-PRAC-029.md @@ -5,24 +5,41 @@ description: 'Pattern: 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 1 1 0 1 0 1 1 0 1 0 1 0 1 0 1 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-029.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-029.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-029.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-029.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-029.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-030.md b/docs-new/semester_1/tuition-c/APC-PRAC-030.md @@ -5,24 +5,41 @@ description: 'Pattern: # @ @ # # # @ @ @ @ # # # # #' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: # @ @ # # # @ @ @ @ # # # # # -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-030.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-030.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-030.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-030.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-030.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-031.md b/docs-new/semester_1/tuition-c/APC-PRAC-031.md @@ -5,24 +5,41 @@ description: 'Pattern: 1 2 3 4 5 6 7 8 # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-031.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-031.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-031.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-031.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-031.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-032.md b/docs-new/semester_1/tuition-c/APC-PRAC-032.md @@ -5,24 +5,41 @@ description: 'Pattern: A B B C C C D D D D E # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Pattern: A B B C C C D D D D E E E E E -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-032.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-032.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-032.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-032.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-032.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-033.md b/docs-new/semester_1/tuition-c/APC-PRAC-033.md @@ -5,24 +5,41 @@ description: 'Print the factorial of the digits off a number' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Print the factorial of the digits off a number -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-033.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-033.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-033.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-033.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-033.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-034.md b/docs-new/semester_1/tuition-c/APC-PRAC-034.md @@ -5,24 +5,41 @@ description: 'Take a Range as input from user and print the prime number between # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Take a Range as input from user and print the prime number between it. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-034.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-034.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-034.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-034.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-034.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-035.md b/docs-new/semester_1/tuition-c/APC-PRAC-035.md @@ -5,24 +5,41 @@ description: 'Print all the 3 and 4 digit palindrome number.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Print all the 3 and 4 digit palindrome number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-035.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-035.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-035.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-035.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-035.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-036.md b/docs-new/semester_1/tuition-c/APC-PRAC-036.md @@ -5,24 +5,41 @@ description: 'Check krishnamurty number.' # APC-PRAC-036.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Check krishnamurty number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-036.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-036.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-036.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-036.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-036.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-037.md b/docs-new/semester_1/tuition-c/APC-PRAC-037.md @@ -5,24 +5,41 @@ description: 'Show all the armstrong number between a range.' # APC-PRAC-037.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Show all the armstrong number between a range. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-037.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-037.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-037.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-037.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-037.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-038.md b/docs-new/semester_1/tuition-c/APC-PRAC-038.md @@ -5,24 +5,41 @@ description: 'Print all combinations of two two-digit numbers such that the sum # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-038.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-038.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-038.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-038.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-038.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-039.md b/docs-new/semester_1/tuition-c/APC-PRAC-039.md @@ -5,24 +5,41 @@ description: 'Write a C program to print all unique combinations of three number # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-039.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-039.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-039.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-039.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-039.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-040.md b/docs-new/semester_1/tuition-c/APC-PRAC-040.md @@ -5,24 +5,41 @@ description: 'Write a C program to count how many numbers between 100 and 999 ha # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a C program to count how many numbers between 100 and 999 have all distinct digits (e.g., 123, 709, 981). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-040.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-040.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-040.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-040.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-040.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-041.md b/docs-new/semester_1/tuition-c/APC-PRAC-041.md @@ -5,24 +5,41 @@ description: 'Write a C program to find and print all twin prime pairs between 1 # APC-PRAC-041.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-041.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-041.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-041.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-041.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-041.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/APC-PRAC-042.md b/docs-new/semester_1/tuition-c/APC-PRAC-042.md @@ -5,24 +5,41 @@ description: 'Write a function to check whether a given string is a palindrome. # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-042.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-042.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-PRAC-042.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-PRAC-042.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-PRAC-042.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-001.md b/docs-new/semester_1/tuition-c/APC-S-001.md @@ -5,16 +5,34 @@ description: 'C program — APC-S-001.c' # APC-S-001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-001.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-S-002.md b/docs-new/semester_1/tuition-c/APC-S-002.md @@ -5,16 +5,34 @@ description: 'C program — APC-S-002.c' # APC-S-002.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-002.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-S-003.md b/docs-new/semester_1/tuition-c/APC-S-003.md @@ -5,16 +5,34 @@ description: 'C program — APC-S-003.c' # APC-S-003.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Source Code +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-003.c) +## Source Code +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-003.c] #include <stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-S-004.md b/docs-new/semester_1/tuition-c/APC-S-004.md @@ -5,24 +5,41 @@ description: 'Program to print first 10 natural numbers using while loop.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Program to print first 10 natural numbers using while loop. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-004.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-004.c] #include <stdio.h> #include <conio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-005.md b/docs-new/semester_1/tuition-c/APC-S-005.md @@ -5,24 +5,41 @@ description: 'Write to reverse a number.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write to reverse a number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-005.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-005.c] #include <stdio.h> #include <conio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-006.md b/docs-new/semester_1/tuition-c/APC-S-006.md @@ -5,24 +5,41 @@ description: 'Write a program to print first 10 multiple of 5' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to print first 10 multiple of 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-006.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-006.c] #include <stdio.h> #include <conio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-007.md b/docs-new/semester_1/tuition-c/APC-S-007.md @@ -5,24 +5,41 @@ description: 'Write a program the sum of first 10 natural numbers.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program the sum of first 10 natural numbers. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-007.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-007.c] #include <stdio.h> #include <conio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-008.md b/docs-new/semester_1/tuition-c/APC-S-008.md @@ -5,24 +5,41 @@ description: 'Write a program to print the sum of two matrix as input given by t # APC-S-008.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to print the sum of two matrix as input given by the user. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-008.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-009.md b/docs-new/semester_1/tuition-c/APC-S-009.md @@ -5,24 +5,41 @@ description: 'Write a program to find the upper and lower triangular matrix.' # APC-S-009.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to find the upper and lower triangular matrix. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-009.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-009.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-009.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-010.md b/docs-new/semester_1/tuition-c/APC-S-010.md @@ -5,24 +5,41 @@ description: 'Write a program to input a new element at a specific position of a # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-010.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-010.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-010.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-011.md b/docs-new/semester_1/tuition-c/APC-S-011.md @@ -5,24 +5,41 @@ description: 'Linear search' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Linear search -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-011.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-011.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-011.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-012.md b/docs-new/semester_1/tuition-c/APC-S-012.md @@ -5,24 +5,41 @@ description: 'Write a program to check if a matrix is a sparx matrix.' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check if a matrix is a sparx matrix. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-012.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-012.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-012.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-013.md b/docs-new/semester_1/tuition-c/APC-S-013.md @@ -5,24 +5,41 @@ description: 'Write a fuction to calculate the average of an array' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a fuction to calculate the average of an array -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-013.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-013.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-013.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/APC-S-014.md b/docs-new/semester_1/tuition-c/APC-S-014.md @@ -5,24 +5,41 @@ description: 'Write a program to store roll no, name and marks of 5 students the # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 14 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to store roll no, name and marks of 5 students then print it. use structure -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-014.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-014.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-S-014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-S-014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-S-014.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/tuition-c/APC-SPS-001.md b/docs-new/semester_1/tuition-c/APC-SPS-001.md @@ -5,16 +5,34 @@ description: 'C program — APC-SPS-001.c' # APC-SPS-001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-001.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-002.md b/docs-new/semester_1/tuition-c/APC-SPS-002.md @@ -5,24 +5,41 @@ description: 'WAP to swap two integers. Display both numbers before and after sw # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to swap two integers. Display both numbers before and after swap -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-002.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-003.md b/docs-new/semester_1/tuition-c/APC-SPS-003.md @@ -5,24 +5,41 @@ description: 'Bitwise AND ''&''' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Bitwise AND '&' -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-003.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-004.md b/docs-new/semester_1/tuition-c/APC-SPS-004.md @@ -5,16 +5,34 @@ description: 'C program — APC-SPS-004.c' # APC-SPS-004.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-004.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-005.md b/docs-new/semester_1/tuition-c/APC-SPS-005.md @@ -5,24 +5,41 @@ description: 'Bitwise OR ''|''' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Bitwise OR '|' -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-005.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-005.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-006.md b/docs-new/semester_1/tuition-c/APC-SPS-006.md @@ -5,24 +5,41 @@ description: 'Bitwise NOT ''~''' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Bitwise NOT '~' -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-006.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-006.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-007.md b/docs-new/semester_1/tuition-c/APC-SPS-007.md @@ -5,24 +5,41 @@ description: 'WAP to check a number is even or odd using bitwise operator' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to check a number is even or odd using bitwise operator -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-007.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-007.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/APC-SPS-008.md b/docs-new/semester_1/tuition-c/APC-SPS-008.md @@ -5,24 +5,41 @@ description: 'WAP to calculate area of circle by accepting radius as input' # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate area of circle by accepting radius as input -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/APC-SPS-008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/APC-SPS-008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [APC-SPS-008.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/tuition-c/P001.md b/docs-new/semester_1/tuition-c/P001.md @@ -5,16 +5,34 @@ description: 'C program — P001.c' # P001.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P001.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P001.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P001.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P001.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P002.md b/docs-new/semester_1/tuition-c/P002.md @@ -5,16 +5,34 @@ description: 'C program — P002.c' # P002.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P002.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P002.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P002.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P002.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P003.md b/docs-new/semester_1/tuition-c/P003.md @@ -5,16 +5,34 @@ description: 'C program — P003.c' # P003.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P003.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P003.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P003.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P003.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P004.md b/docs-new/semester_1/tuition-c/P004.md @@ -5,24 +5,41 @@ description: 'WAP to find and display the value of given expression : ((x+3)/4) # P004.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to find and display the value of given expression : ((x+3)/4) - ((2x+4)/3) taking the value of x = 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P004.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P004.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P004.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P004.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P005.md b/docs-new/semester_1/tuition-c/P005.md @@ -5,24 +5,41 @@ description: 'A person is paid Rs. 455 for each day he works and fined Rs. 150 f # P005.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P005.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P005.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P005.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P005.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P006.md b/docs-new/semester_1/tuition-c/P006.md @@ -5,24 +5,41 @@ description: 'The normal temperature of human body is 98.6 Degree Fahrenheit. WA # P006.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P006.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P006.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P006.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P006.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P007.md b/docs-new/semester_1/tuition-c/P007.md @@ -5,24 +5,41 @@ description: 'A shopkeeper offers 10% discount on printed price of a digital cam # P007.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P007.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P007.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P007.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P007.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P008.md b/docs-new/semester_1/tuition-c/P008.md @@ -5,24 +5,41 @@ description: 'A shopkeeper offers 30% discount on purchasing an item whereas the # P008.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P008.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P008.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P008.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P008.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P009.md b/docs-new/semester_1/tuition-c/P009.md @@ -5,24 +5,41 @@ description: 'WAP to calculate gross and net salary by accepting basic salary as # P009.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P009.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P009.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P009.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P009.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P010.md b/docs-new/semester_1/tuition-c/P010.md @@ -5,24 +5,41 @@ description: 'WAP to find and display the difference between compound Interest a # P010.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P010.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P010.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P010.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P010.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/tuition-c/P011.md b/docs-new/semester_1/tuition-c/P011.md @@ -5,24 +5,41 @@ description: 'The time period of a simple pendulam is given by the formula : t = # P011.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P011.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P011.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P011.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P011.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/tuition-c/P012.md b/docs-new/semester_1/tuition-c/P012.md @@ -5,24 +5,41 @@ description: 'WAP to swap two integer variable without using third variable' # P012.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to swap two integer variable without using third variable -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P012.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P012.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P012.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P012.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P013.md b/docs-new/semester_1/tuition-c/P013.md @@ -5,24 +5,41 @@ description: 'WAP to swap two integer variable without using third variable' # P013.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to swap two integer variable without using third variable -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P013.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P013.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P013.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P013.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/tuition-c/P014.md b/docs-new/semester_1/tuition-c/P014.md @@ -5,24 +5,41 @@ description: 'WAP to accept the diagonal of square. Find and display the area an # P014.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to accept the diagonal of square. Find and display the area and perimeter of the square. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P014.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P014.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P014.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P014.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/tuition-c/P015.md b/docs-new/semester_1/tuition-c/P015.md @@ -5,24 +5,41 @@ description: 'WAP to accept number of days and display it after converting into # P015.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to accept number of days and display it after converting into number of years, months and days -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P015.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P015.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P015.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P015.c] #include<stdio.h> int main() { diff --git a/docs-new/semester_1/tuition-c/P016.md b/docs-new/semester_1/tuition-c/P016.md @@ -5,24 +5,41 @@ description: 'WAP to calculate and display radius of a circle by taking the area # P016.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate and display radius of a circle by taking the area as input -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P016.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P016.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P016.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P016.c] #include<stdio.h> #include<math.h> diff --git a/docs-new/semester_1/tuition-c/P017.md b/docs-new/semester_1/tuition-c/P017.md @@ -5,24 +5,41 @@ description: 'Find maximum between three number.' # P017.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Find maximum between three number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P017.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P017.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P017.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P017.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P018.md b/docs-new/semester_1/tuition-c/P018.md @@ -5,24 +5,41 @@ description: 'WAP to input the cost price and selling price and calculate profit # P018.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P018.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P018.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P018.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P018.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P018.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P019.md b/docs-new/semester_1/tuition-c/P019.md @@ -5,24 +5,41 @@ description: 'WAP to input the distance covered and calculate the amount to be p # P019.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P019.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P019.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P019.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P019.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P019.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P020.md b/docs-new/semester_1/tuition-c/P020.md @@ -5,24 +5,41 @@ description: 'WAP to calculate and display the maturity amount taking the sum an # P020.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 % -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P020.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P020.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P020.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P020.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P020.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P021.md b/docs-new/semester_1/tuition-c/P021.md @@ -5,24 +5,41 @@ description: 'WAP to input a positive number and check if it is a perfect square # P021.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to input a positive number and check if it is a perfect square number or not. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P021.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P021.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P021.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P021.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P021.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P022.md b/docs-new/semester_1/tuition-c/P022.md @@ -5,24 +5,41 @@ description: 'WAP to find out smallest of three numbers without using if_else bl # P022.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to find out smallest of three numbers without using if_else block. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P022.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P022.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P022.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P022.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P022.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P023.md b/docs-new/semester_1/tuition-c/P023.md @@ -5,24 +5,41 @@ description: 'WAP to input the total cost and compute the amount to be paid by t # P023.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to input the total cost and compute the amount to be paid by the customer. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P023.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P023.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P023.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P023.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P023.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P024.md b/docs-new/semester_1/tuition-c/P024.md @@ -5,24 +5,41 @@ description: 'WAP to check whether a year is leapyear or not.' # P024.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to check whether a year is leapyear or not. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P024.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P024.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P024.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P024.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P024.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P025.md b/docs-new/semester_1/tuition-c/P025.md @@ -5,24 +5,41 @@ description: 'WAP to input the electricity unit consumed and calculate the total # P025.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P025.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P025.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P025.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P025.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P025.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P026.md b/docs-new/semester_1/tuition-c/P026.md @@ -5,24 +5,41 @@ description: 'WAP to input sum (p), rate of interest (r), time (t) and type of i # P026.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P026.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P026.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P026.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P026.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P026.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P027.md b/docs-new/semester_1/tuition-c/P027.md @@ -5,24 +5,41 @@ description: 'Purchase Discount on Discount on Amount Lapt # P027.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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). -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P027.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P027.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P027.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P027.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P027.c] #include <stdio.h> #include <ctype.h> diff --git a/docs-new/semester_1/tuition-c/P028.md b/docs-new/semester_1/tuition-c/P028.md @@ -5,24 +5,41 @@ description: 'WAP to calculate factorial of a number' # P028.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate factorial of a number -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P028.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P028.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P028.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P028.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P028.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P029.md b/docs-new/semester_1/tuition-c/P029.md @@ -5,24 +5,41 @@ description: 'WAP to perform addition of first n natural numbers. sum = 1 + 2 + # P029.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to perform addition of first n natural numbers. sum = 1 + 2 + 3 + ... -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P029.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P029.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P029.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P029.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P029.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P030.md b/docs-new/semester_1/tuition-c/P030.md @@ -5,24 +5,41 @@ description: 'Display the first 15 terms of the series.' # P030.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Display the first 15 terms of the series. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P030.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P030.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P030.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P030.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P030.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P031.md b/docs-new/semester_1/tuition-c/P031.md @@ -5,24 +5,41 @@ description: 'Find the sum of the series' # P031.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Find the sum of the series -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P031.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P031.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P031.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P031.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P031.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P032.md b/docs-new/semester_1/tuition-c/P032.md @@ -5,24 +5,41 @@ description: 'WAP to input a number and check whether it is a Niven number or no # P032.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P032.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P032.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P032.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P032.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P032.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P033.md b/docs-new/semester_1/tuition-c/P033.md @@ -5,24 +5,41 @@ description: 'WAP to calculate the sum of even digits and odd digits. Number wil # P033.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to calculate the sum of even digits and odd digits. Number will be provided by user. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P033.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P033.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P033.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P033.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P033.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P034.md b/docs-new/semester_1/tuition-c/P034.md @@ -5,24 +5,41 @@ description: 'Get sum of even position digit and odd position digit' # P034.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Get sum of even position digit and odd position digit -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P034.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P034.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P034.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P034.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P034.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P035.md b/docs-new/semester_1/tuition-c/P035.md @@ -5,24 +5,41 @@ description: 'WAP to input an int number and display the product of the successo # P035.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to input an int number and display the product of the successors of even digits of the number entered by user. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P035.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P035.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P035.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P035.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P035.c] #include <stdio.h> #include <stdbool.h> diff --git a/docs-new/semester_1/tuition-c/P036.md b/docs-new/semester_1/tuition-c/P036.md @@ -5,24 +5,41 @@ description: 'sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n' # P036.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P036.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P036.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P036.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P036.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P036.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P037.md b/docs-new/semester_1/tuition-c/P037.md @@ -5,24 +5,41 @@ description: 'sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n' # P037.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P037.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P037.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P037.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P037.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P037.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P038.md b/docs-new/semester_1/tuition-c/P038.md @@ -5,24 +5,41 @@ description: 'Write a program to check prime number' # P038.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check prime number -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P038.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P038.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P038.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P038.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P038.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P039.md b/docs-new/semester_1/tuition-c/P039.md @@ -5,24 +5,41 @@ description: 'Write a program to print all the factors of a postive integer' # P039.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to print all the factors of a postive integer -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P039.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P039.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P039.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P039.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P039.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P040.md b/docs-new/semester_1/tuition-c/P040.md @@ -5,24 +5,41 @@ description: 'Write a program to calculate HCF of two positive number' # P040.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to calculate HCF of two positive number -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P040.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P040.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P040.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P040.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P040.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P041.md b/docs-new/semester_1/tuition-c/P041.md @@ -5,24 +5,41 @@ description: 'Write a program to enter two numbers and check they are co-prime o # P041.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to enter two numbers and check they are co-prime or not. co-prime when HCF = 1 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P041.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P041.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P041.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P041.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P041.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P042.md b/docs-new/semester_1/tuition-c/P042.md @@ -5,24 +5,41 @@ description: 'Write a program to accept a number and check whether the number is # P042.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to accept a number and check whether the number is twisted prime or not. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P042.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P042.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P042.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P042.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P042.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P043.md b/docs-new/semester_1/tuition-c/P043.md @@ -5,24 +5,41 @@ description: 'Write a program to check palindrome number.' # P043.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to check palindrome number. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P043.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P043.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P043.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P043.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P043.c] #include <stdio.h> int main() diff --git a/docs-new/semester_1/tuition-c/P044.md b/docs-new/semester_1/tuition-c/P044.md @@ -5,24 +5,41 @@ description: 'Write a program to input a number and check whether the number is # P044.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P044.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P044.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P044.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P044.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P044.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P045.md b/docs-new/semester_1/tuition-c/P045.md @@ -5,24 +5,41 @@ description: 'Make this pattern for input n. Pattern : 1 1 2 1 2 3 1 2 # P045.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Make this pattern for input n. Pattern : 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P045.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P045.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P045.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P045.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P045.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P046.md b/docs-new/semester_1/tuition-c/P046.md @@ -5,24 +5,41 @@ description: 'Make this pattern for input n. Pattern : 1 2 1 3 2 1 4 3 # P046.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Make this pattern for input n. Pattern : 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P046.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P046.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P046.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P046.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P046.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P047.md b/docs-new/semester_1/tuition-c/P047.md @@ -5,24 +5,41 @@ description: 'Make this pattern for input n. Pattern : 5 5 4 5 4 3 5 4 # P047.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Make this pattern for input n. Pattern : 5 5 4 5 4 3 5 4 3 2 5 4 3 2 1 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P047.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P047.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P047.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P047.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P047.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P048.md b/docs-new/semester_1/tuition-c/P048.md @@ -5,24 +5,41 @@ description: 'Make this pattern for input n no of row. Pattern : 1 2 3 4 5 # P048.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P048.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P048.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P048.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P048.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P048.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P049.md b/docs-new/semester_1/tuition-c/P049.md @@ -5,24 +5,41 @@ description: 'Make this pattern for input n no of row. Pattern : # @ @ # # # P049.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Make this pattern for input n no of row. Pattern : # @ @ # # # @ @ @ @ # # # # # -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P049.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P049.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P049.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P049.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P049.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P050-SHORT.md b/docs-new/semester_1/tuition-c/P050-SHORT.md @@ -5,24 +5,41 @@ description: 'Write a program to input a number and check whether it is Disarium # 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) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050-SHORT.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050-SHORT.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050-SHORT.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050-SHORT.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P050-SHORT.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P050.md b/docs-new/semester_1/tuition-c/P050.md @@ -5,24 +5,41 @@ description: 'Write a program to input a number and check whether it is Disarium # P050.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P050.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P050.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P050.c] #include <stdio.h> #include <math.h> diff --git a/docs-new/semester_1/tuition-c/P051.md b/docs-new/semester_1/tuition-c/P051.md @@ -5,24 +5,41 @@ description: 'Write a program to input two number and check whether they are Ami # P051.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P051.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P051.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P051.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P051.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P051.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P052.md b/docs-new/semester_1/tuition-c/P052.md @@ -5,24 +5,41 @@ description: 'Print the sum of this series for upto n element. Series: 1 + (1 + # P052.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P052.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P052.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P052.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P052.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P052.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P053.md b/docs-new/semester_1/tuition-c/P053.md @@ -5,24 +5,41 @@ description: 'Print all pattern' # 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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Print all pattern -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P053.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P053.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P053.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P053.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P053.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P054.md b/docs-new/semester_1/tuition-c/P054.md @@ -5,24 +5,41 @@ description: 'WAP to check Krishnamurty number using user defined methods/functi # P054.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to check Krishnamurty number using user defined methods/functions. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P054.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P054.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P054.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P054.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P054.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P055.md b/docs-new/semester_1/tuition-c/P055.md @@ -5,24 +5,41 @@ description: 'WAP to print n terms of Fibbonacci Series (Starting from term 0)' # P055.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to print n terms of Fibbonacci Series (Starting from term 0) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P055.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P055.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P055.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P055.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P055.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P056.md b/docs-new/semester_1/tuition-c/P056.md @@ -5,24 +5,41 @@ description: 'WAP to swap the value of a and b using user defined method.' # P056.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to swap the value of a and b using user defined method. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P056.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P056.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P056.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P056.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P056.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P057.md b/docs-new/semester_1/tuition-c/P057.md @@ -5,24 +5,41 @@ description: 'WAP to display the series using user defined method. 0, 7, 26, 63, # P057.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to display the series using user defined method. 0, 7, 26, 63, ... upto n terms using void series(int n) -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P057.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P057.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P057.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P057.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P057.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P058.md b/docs-new/semester_1/tuition-c/P058.md @@ -5,24 +5,41 @@ description: 'WAP to display ASCII code of Alphabets (A - Z) using void displayA # P058.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to display ASCII code of Alphabets (A - Z) using void displayASCII() -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P058.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P058.c) - +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P058.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P058.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P058.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P059.md b/docs-new/semester_1/tuition-c/P059.md @@ -5,24 +5,41 @@ description: 'Write a program to find the sum of array elements using following # P059.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) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 12 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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); -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P059.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P059.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P059.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P059.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P059.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P060.md b/docs-new/semester_1/tuition-c/P060.md @@ -5,24 +5,41 @@ description: 'write a C program to count the occurrences of a given element in a # P060.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 13 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 13 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P060.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P060.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P060.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P060.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P060.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P061.md b/docs-new/semester_1/tuition-c/P061.md @@ -5,24 +5,41 @@ description: 'Write a C program to find the sum of even elements in an array usi # P061.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 14 Dec 2025 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 14 Dec 2025 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P061.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P061.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P061.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P061.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P061.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P062.md b/docs-new/semester_1/tuition-c/P062.md @@ -5,24 +5,41 @@ description: 'Write a C program to find the smallest and largest in an array usi # P062.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 16 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 16 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P062.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P062.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P062.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P062.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P062.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/tuition-c/P063.md b/docs-new/semester_1/tuition-c/P063.md @@ -5,24 +5,41 @@ description: 'Write a C program to find all Niven in an array. Define a user-def # P063.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 16 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 16 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P063.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P063.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P063.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P063.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P063.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/tuition-c/P064.md b/docs-new/semester_1/tuition-c/P064.md @@ -5,24 +5,41 @@ description: 'Write a program to merge two sorted integer arrays to form a singl # P064.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 21 Dec 2025 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 21 Dec 2025 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to merge two sorted integer arrays to form a single sorted array. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P064.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P064.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P064.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P064.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P064.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/tuition-c/P065.md b/docs-new/semester_1/tuition-c/P065.md @@ -5,24 +5,41 @@ description: 'Write a program to reverse a string' # P065.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 12 Jan 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 12 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to reverse a string -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P065.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P065.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P065.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P065.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P065.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/tuition-c/P066.md b/docs-new/semester_1/tuition-c/P066.md @@ -5,24 +5,41 @@ description: 'WAP to find the length of a string using i) Library Method ii) Use # P066.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 14 Jan 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 14 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement WAP to find the length of a string using i) Library Method ii) User defined method -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P066.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P066.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P066.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P066.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P066.c] #include <stdio.h> #include <string.h> diff --git a/docs-new/semester_1/tuition-c/P067.md b/docs-new/semester_1/tuition-c/P067.md @@ -5,24 +5,41 @@ description: 'Write a program using function which concatenates two string s1 an # P067.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 14 Jan 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 14 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program using function which concatenates two string s1 and s2 in to a third string -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P067.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P067.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P067.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P067.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P067.c] #include <stdio.h> diff --git a/docs-new/semester_1/tuition-c/P068.md b/docs-new/semester_1/tuition-c/P068.md @@ -5,24 +5,41 @@ description: 'Write a c program that perform the operation of strcmp()' # P068.c -| Property | Details | -| :--- | :--- | -| **Author** | Amit Dutta (amitdutta4255@gmail.com) | -| **Date** | 14 Jan 2026 | -| **License** | [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 14 Jan 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a c program that perform the operation of strcmp() -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P068.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P068.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P068.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P068.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P068.c] #include <stdio.h> #include <stdlib.h> diff --git a/docs-new/semester_1/tuition-c/P069.md b/docs-new/semester_1/tuition-c/P069.md @@ -5,24 +5,41 @@ description: 'Write a program using user defined method to implement the followi # P069.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 14 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 14 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip 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 -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P069.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P069.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P069.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P069.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P069.c] #include <stdio.h> #include <ctype.h> diff --git a/docs-new/semester_1/tuition-c/P070.md b/docs-new/semester_1/tuition-c/P070.md @@ -5,24 +5,41 @@ description: 'Write a program to perform addition of two complex number having f # P070.c -| Property | Details | -| :--- | :--- | -| **Author** | [Amit Dutta](mailto:amitdutta4255@gmail.com) | -| **Date** | 24 Jan 2026 | -| **License** | [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) | +### Metadata -## Problem Statement +- **Author** — [Amit Dutta](mailto:amitdutta4255@gmail.com) +- **Last updated** — 24 Jan 2026 +- **License** — [MIT License (See the LICENSE file for details)](https://github.com/notamitgamer/bsc/blob/main/LICENSE) -::: info Problem Statement -<b><i> + +### Problem Statement + +::: tip Problem Statement Write a program to perform addition of two complex number having fields 'real' and 'img' of type integer. -</i></b> ::: ## Source Code -[View on GitHub](https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P070.c) | [Download Raw](https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P070.c) +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_1/tuition-c/P070.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_1/tuition-c/P070.c" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: ```c [P070.c] #include <stdio.h> diff --git a/docs-new/semester_2/index.md b/docs-new/semester_2/index.md @@ -9,4 +9,60 @@ This folder contains all my current academic work, including practicals, assignm **Explore More:** * See my other projects on my [**Portfolio**](https://amit.is-a.dev/) * Follow my development journey on [**GitHub**](https://github.com/notamitgamer) -:::- \ No newline at end of file +::: + +## Folders + +| No. | Folder Name | Link | +|---|---|---| +| 1 | Practice | [Open Folder](practice/index.md) | +| 2 | Tuition | [Open Folder](tuition/index.md) | +| 3 | Python | [Open Folder](python/index.md) | + +## Directory Structure + +To keep the repository organized, the C++ and Python programs are divided into specific categories based on their origin and purpose. + +### C++ Programming (Data Structures) +* **`/practice/`**: General, day-to-day CPP programming practice files. +* **`/tuition/`**: Programs and problem-solving exercises completed during tuition classes. +### Python Programming (SEC) +* **`/python/`**: Contains all SEC coursework, split into: + * `/code/`: Python script files (`.py`) for practicals. + * `/material_pdf/`: Study materials and reference documents. +## How to Find a Specific Code +1. **Identify the Category:** Determine if the code was an assignment, a tuition exercise, or practice problem, and navigate to the corresponding folder above. +2. **Naming Convention:** Most files are sequentially numbered for easy tracking. +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 (`.cpp`) +Ensure you have a C++ compiler (like GCC/G++ via MinGW) installed. If you haven't set it up, refer to the [Main Repository README](../index.md) for the installation guide. + +1. Open your terminal or command prompt. +2. Navigate to the folder containing the specific program: +```bash + cd semester_2/assignment-primary +``` +3. Compile the code using G++: +```bash + g++ assignment-p-01.cpp -o program.exe +``` +4. Execute the compiled file: +```bash + ./program.exe +``` + +### Running Python Programs (`.py`) +Ensure you have Python 3 installed, or run the scripts via an IDE such as VS Code or PyCharm. + +#### To run via command line: +1. Open your terminal. +2. Navigate to the Python Code directory: +```bash + cd semester_2/Python/Code +``` +3. Execute the script using `python3`: +```bash + python3 Python_Prac-1.py +```+ \ No newline at end of file diff --git a/docs-new/semester_2/practice/index.md b/docs-new/semester_2/practice/index.md @@ -0,0 +1,10 @@ +# Practice + +Files and sub-folders in **Practice**. + +## Files + +| # | File | Link | +|---|---|---| +| 1 | `prac_001.cpp` | [View Code](prac_001.md) | + diff --git a/docs-new/semester_2/practice/prac_001.md b/docs-new/semester_2/practice/prac_001.md @@ -0,0 +1,59 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> prac_001.cpp' +description: 'Trying to remember after a year.' +--- + +# prac_001.cpp + +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jun 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) + + +### Problem Statement + +::: tip Problem Statement +Trying to remember after a year. +::: + +## Source Code + +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_2/practice/prac_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_2/practice/prac_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: +```cpp [prac_001.cpp] +#include <iostream> +using namespace std; + +int main() { + int n; + cout << "Enter a number: "; + cin >> n; + + for (int i = 1; i <= n; i++) { + cout << i << " "; + } + cout << endl; + + return 0; +} +``` diff --git a/docs-new/semester_2/python/code/code_01.md b/docs-new/semester_2/python/code/code_01.md @@ -0,0 +1,63 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1"/></svg> code_01.py' +description: 'Coming back to basics after months.' +--- + +# code_01.py + +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jun 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) + + +### Problem Statement + +::: tip Problem Statement +Coming back to basics after months. +::: + +## Source Code + +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_2/python/code/code_01.py" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_2/python/code/code_01.py" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: +```python [code_01.py] +# Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jun 2026 +# Repo: https://github.com/notamitgamer/bsc +# License: MIT + +# Coming back to basics after months. + +n = int(input("How many numbers? ")) +even_count = 0 +odd_count = 0 + +for i in range(n): + num = int(input("Enter a number: ")) + if num % 2 == 0: + even_count += 1 + else: + odd_count += 1 + +print("Even numbers:", even_count) +print("Odd numbers:", odd_count) +``` diff --git a/docs-new/semester_2/python/code/index.md b/docs-new/semester_2/python/code/index.md @@ -0,0 +1,10 @@ +# Code + +Files and sub-folders in **Code**. + +## Files + +| # | File | Link | +|---|---|---| +| 1 | `code_01.py` | [View Code](code_01.md) | + diff --git a/docs-new/semester_2/python/index.md b/docs-new/semester_2/python/index.md @@ -0,0 +1,10 @@ +# Python + +Files and sub-folders in **Python**. + +## Folders + +| # | Folder | Link | +|---|---|---| +| 1 | Code | [Open](code/index.md) | + diff --git a/docs-new/semester_2/tutition/apc_001.md b/docs-new/semester_2/tutition/apc_001.md @@ -0,0 +1,60 @@ +--- +title: '<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:inline; margin-bottom:-2px; margin-right:6px;"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/><path d="M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1"/><path d="M14 18a1 1 0 0 0 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_001.cpp' +description: 'Tring to remember after a year.' +--- + +# apc_001.cpp + +### Metadata + +- **Author** — Amit Dutta (amitdutta4255@gmail.com) +- **Last updated** — 18 Jun 2026 +- **License** — [MIT](https://github.com/notamitgamer/bsc/blob/main/LICENSE) + + +### Problem Statement + +::: tip Problem Statement +Tring to remember after a year. +::: + +## Source Code + +<div style="display:flex;gap:12px;margin-bottom:12px;"> + <a href="https://github.com/notamitgamer/bsc/blob/main/semester_2/tutition/apc_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-brand);"> + <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="currentColor" style="vertical-align:middle;"> + <path d="M12 0C5.37 0 0 5.373 0 12c0 5.303 3.438 9.8 8.205 11.387.6.113.82-.258 .82-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.757 -1.333-1.757-1.089-.745.083-.729.083-.729 1.205.084 1.84 1.236 1.84 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3 -5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523 .105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873 .12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92 .42.36.81 1.096.81 2.22v3.293c0 .319.21.694.825.576C20.565 21.795 24 17.298 24 12c0-6.627-5.373-12-12-12z"/> + </svg> + View on GitHub + </a> + <a href="https://raw.usercontent.amit.is-a.dev/semester_2/tutition/apc_001.cpp" target="_blank" rel="noopener noreferrer" style="display:inline-flex;align-items:center;gap:6px;font-size:0.85rem; text-decoration:none;color:var(--vp-c-text-2);"> + <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" style="vertical-align:middle;"> + <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/> + <polyline points="7 10 12 15 17 10"/> + <line x1="12" y1="15" x2="12" y2="3"/> + </svg> + Download Raw + </a> +</div> + +::: info Printing the code +To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page. +::: +```cpp [apc_001.cpp] +#include <iostream> +using namespace std; + +int main() { + int num, count = 0; + cout << "Enter numbers one by one (enter -1 to stop):" << endl; + + cin >> num; + while (num != -1) { + count++; + cin >> num; + } + + cout << "Total numbers entered: " << count << endl; + return 0; +} +``` diff --git a/docs-new/semester_2/tutition/index.md b/docs-new/semester_2/tutition/index.md @@ -0,0 +1,10 @@ +# Tutition + +Files and sub-folders in **Tutition**. + +## Files + +| # | File | Link | +|---|---|---| +| 1 | `apc_001.cpp` | [View Code](apc_001.md) | + diff --git a/list.py b/list.py @@ -1,22 +1,27 @@ import os -def list_all_c_files(start_path='.', output_file='list.txt'): + +EXTENSIONS = ('.c', '.r', '.cpp', '.py') + +EXCLUDE = ('list.py', 'md.py', 'utils') # folder/file names to skip + +def list_all_files(start_path='.', output_file='list.txt'): try: count = 0 with open(output_file, 'w', encoding='utf-8') as f: for root, dirs, files in os.walk(start_path): + dirs[:] = [d for d in dirs if d not in EXCLUDE] + for file in files: - if file.lower().endswith('.c'): - full_path = os.path.abspath(os.path.join(root, file)) - f.write(full_path + '\n') - count += 1 - if file.lower().endswith('.r'): - full_path = os.path.abspath(os.path.join(root, file)) + if file in EXCLUDE: + continue + if file.lower().endswith(EXTENSIONS): + full_path = os.path.abspath(os.path.join(root, file)) f.write(full_path + '\n') count += 1 - + print(f"\nSuccessfully found {count} file(s).") print(f"Results have been saved to: {os.path.abspath(output_file)}") - + except PermissionError: print("Error: Permission denied in some directories.") except Exception as e: @@ -24,11 +29,11 @@ def list_all_c_files(start_path='.', output_file='list.txt'): if __name__ == "__main__": current_directory = os.getcwd() - - print(f"Scanning for .c files in: {current_directory}\n") + + print(f"Scanning for {', '.join(EXTENSIONS)} files in: {current_directory}\n") print("-" * 30) - - list_all_c_files(current_directory) - + + list_all_files(current_directory) + print("-" * 30) print("Scan complete.") \ No newline at end of file diff --git a/md.py b/md.py @@ -254,6 +254,9 @@ def build_md(filename, lang_label, fence_lang, author, date, repo, license_str, ' </a>', '</div>', "", + "::: info Printing the code", + "To print this file, open it on GitHub and click **Raw** before printing, or use the **Download Raw** button above and print directly from that page.", + ":::", f"```{fence_lang} [{filename}]", code, "```", diff --git a/semester_2/README.md b/semester_2/README.md @@ -8,4 +8,52 @@ > > **Explore More:** > * See my other projects on my [**Portfolio**](https://amit.is-a.dev/) -> * Follow my development journey on [**GitHub**](https://github.com/notamitgamer)- \ No newline at end of file +> * Follow my development journey on [**GitHub**](https://github.com/notamitgamer) + +## Directory Structure + +To keep the repository organized, the C++ and Python programs are divided into specific categories based on their origin and purpose. + +### C++ Programming (Data Structures) +* **`/practice/`**: General, day-to-day CPP programming practice files. +* **`/tuition/`**: Programs and problem-solving exercises completed during tuition classes. +### Python Programming (SEC) +* **`/python/`**: Contains all SEC coursework, split into: + * `/code/`: Python script files (`.py`) for practicals. + * `/material_pdf/`: Study materials and reference documents. +## How to Find a Specific Code +1. **Identify the Category:** Determine if the code was an assignment, a tuition exercise, or practice problem, and navigate to the corresponding folder above. +2. **Naming Convention:** Most files are sequentially numbered for easy tracking. +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 (`.cpp`) +Ensure you have a C++ compiler (like GCC/G++ via MinGW) installed. If you haven't set it up, refer to the [Main Repository README](../index.md) for the installation guide. + +1. Open your terminal or command prompt. +2. Navigate to the folder containing the specific program: +```bash + cd semester_2/assignment-primary +``` +3. Compile the code using G++: +```bash + g++ assignment-p-01.cpp -o program.exe +``` +4. Execute the compiled file: +```bash + ./program.exe +``` + +### Running Python Programs (`.py`) +Ensure you have Python 3 installed, or run the scripts via an IDE such as VS Code or PyCharm. + +#### To run via command line: +1. Open your terminal. +2. Navigate to the Python Code directory: +```bash + cd semester_2/Python/Code +``` +3. Execute the script using `python3`: +```bash + python3 Python_Prac-1.py +```+ \ No newline at end of file diff --git a/semester_2/practice/prac_001.cpp b/semester_2/practice/prac_001.cpp @@ -0,0 +1,23 @@ +/* + * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jun 2026 + * Repo: https://github.com/notamitgamer/bsc + * License: MIT + */ + +/* Trying to remember after a year. */ + +#include <iostream> +using namespace std; + +int main() { + int n; + cout << "Enter a number: "; + cin >> n; + + for (int i = 1; i <= n; i++) { + cout << i << " "; + } + cout << endl; + + return 0; +}+ \ No newline at end of file diff --git a/semester_2/python/code/code_01.py b/semester_2/python/code/code_01.py @@ -0,0 +1,19 @@ +# Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jun 2026 +# Repo: https://github.com/notamitgamer/bsc +# License: MIT + +# Coming back to basics after months. + +n = int(input("How many numbers? ")) +even_count = 0 +odd_count = 0 + +for i in range(n): + num = int(input("Enter a number: ")) + if num % 2 == 0: + even_count += 1 + else: + odd_count += 1 + +print("Even numbers:", even_count) +print("Odd numbers:", odd_count)+ \ No newline at end of file diff --git a/semester_2/tutition/apc_001.cpp b/semester_2/tutition/apc_001.cpp @@ -0,0 +1,24 @@ +/* + * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 18 Jun 2026 + * Repo: https://github.com/notamitgamer/bsc + * License: MIT + */ + +/* Tring to remember after a year. */ + +#include <iostream> +using namespace std; + +int main() { + int num, count = 0; + cout << "Enter numbers one by one (enter -1 to stop):" << endl; + + cin >> num; + while (num != -1) { + count++; + cin >> num; + } + + cout << "Total numbers entered: " << count << endl; + return 0; +}+ \ No newline at end of file