commit e245033167c3dbd905d5549ee87389e088e6a725 parent 52d48c131701ee0774d9d91c786ed16cadb4e2e2 Author: Amit Dutta <amitdutta4255@gmail.com> Date: Mon, 26 Jan 2026 15:02:42 +0530 [2026-01-26] : .\Semester_1 : deleted redundant file create dates Diffstat:
168 files changed, 2 insertions(+), 328 deletions(-)
diff --git a/Semester_1/challenge/sudipto1.c b/Semester_1/challenge/sudipto1.c @@ -38,7 +38,6 @@ * for example: 1 0 1 0 */ -/* Author - Amit Dutta, Date - 12th October, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/khurapati-idea/KI001.c b/Semester_1/khurapati-idea/KI001.c @@ -6,7 +6,6 @@ // khurapati idea no. : 1 // Idea : we can use the side effect of printf function to get length of any string or number -// Author - Amit Dutta, Date - 16-10-2025 #include <stdio.h> int main() diff --git a/Semester_1/khurapati-idea/KI002.c b/Semester_1/khurapati-idea/KI002.c @@ -4,7 +4,6 @@ * License: MIT | Copyright (c) 2025 Amit Dutta */ -/* Author - Amit Dutta, Date - 05th November, 2025 */ /* Plan - checking for edge case */ diff --git a/Semester_1/letusc/luc001.c b/Semester_1/letusc/luc001.c @@ -7,7 +7,6 @@ /* Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees. */ -/* Author - Amit Dutta, Date - 13 sep, 2025 */ /* Chapter 1; Page 19; Question NO.: F(a) */ #include<stdio.h> diff --git a/Semester_1/letusc/luc002.c b/Semester_1/letusc/luc002.c @@ -8,7 +8,6 @@ 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. */ -/* Author - Amit Dutta, Date - 16th SEP, 2025 */ /* Let Us C; Page - 19; Chap- 1; QNo.: F(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc003.c b/Semester_1/letusc/luc003.c @@ -10,7 +10,6 @@ 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. */ -/* Author - Amit Dutta, Date - 16th SEP, 2025 */ /* Let Us C; Page - 19; Chap- 1; QNo.: F(c) */ #include<stdio.h> diff --git a/Semester_1/letusc/luc004.c b/Semester_1/letusc/luc004.c @@ -7,7 +7,6 @@ /* 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 %) */ -/* Author - Amit Dutta, Date - 28th SEP, 2025 */ /* Let Us C; Page - 37; Chap- 2; QNo.: G(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc005.c b/Semester_1/letusc/luc005.c @@ -8,7 +8,6 @@ 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) */ -/* Author - Amit Dutta, Date - 28th SEP, 2025 */ /* Let Us C; Page - 37; Chap- 2; QNo.: G(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc006.c b/Semester_1/letusc/luc006.c @@ -10,7 +10,6 @@ miles is : D = 3963 cos^-1(sin L1 sin L2 + cos L1 cos L2 * cos(G2 - G1)) */ -/* Author - Amit Dutta, Date - 29th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn no.: G(c) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc007.c b/Semester_1/letusc/luc007.c @@ -10,7 +10,6 @@ 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). */ -/* Author - Amit Dutta, Date - 30th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn No.: G(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc008.c b/Semester_1/letusc/luc008.c @@ -6,7 +6,6 @@ /* If value of an angle is input through the keyboard, write a program to print all its trigonometric ratios. */ -/* Author - Amit Dutta, Date - 30th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn No.: G(e) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc009.c b/Semester_1/letusc/luc009.c @@ -6,7 +6,6 @@ /* Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D. */ -/* Author - Amit Dutta, Date - 30th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn No.: G(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc010.c b/Semester_1/letusc/luc010.c @@ -7,7 +7,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap - 3, Page - 53, Qn No.: f(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc011.c b/Semester_1/letusc/luc011.c @@ -6,7 +6,6 @@ /* If ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc012.c b/Semester_1/letusc/luc012.c @@ -7,7 +7,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(c) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc013.c b/Semester_1/letusc/luc013.c @@ -6,7 +6,6 @@ /* Write a program to find the absolute value of a number entered through the keyboard. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc014.c b/Semester_1/letusc/luc014.c @@ -8,7 +8,6 @@ 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(e) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc015.c b/Semester_1/letusc/luc015.c @@ -6,7 +6,6 @@ /* Given three points (x1, y1), (x2, y2), and (x3, y3), write a program to check if the three poins fall on one straight line. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(f) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc016.c b/Semester_1/letusc/luc016.c @@ -9,7 +9,6 @@ /* 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.) */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(g) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc017.c b/Semester_1/letusc/luc017.c @@ -5,7 +5,6 @@ */ /* Given a point (x, y), write a program to find out if it lies on X-axis, Y-axis or origin. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(h) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc018-logic.c b/Semester_1/letusc/luc018-logic.c @@ -8,7 +8,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(i) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc018.c b/Semester_1/letusc/luc018.c @@ -7,7 +7,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(i) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc019.c b/Semester_1/letusc/luc019.c @@ -9,7 +9,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 3rd OCT, 2025 */ /* Let Us C, Chap- 4, Page - 71, Qn No.: D(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc020.c b/Semester_1/letusc/luc020.c @@ -17,7 +17,6 @@ Write a program that converts RGB color to CMYK color as per the following formu 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. */ -/* Author - Amit Dutta, Date - 4th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 71, Qn No.: D(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc021.c b/Semester_1/letusc/luc021.c @@ -23,7 +23,6 @@ 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. */ -/* Author - Amit Dutta, Date - 4th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 71, Qn No.: D(c) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc022.c b/Semester_1/letusc/luc022.c @@ -19,7 +19,6 @@ the BMI catagory as per the following table. Obese 30 to 39.9 Morbidly Obese >= 40 */ -/* Author - Amit Dutta, Date - 4th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: D(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc023.c b/Semester_1/letusc/luc023.c @@ -9,7 +9,6 @@ lower case alphabet or not. (2) Whether a character entered through the keyboard is a special symbol or not. */ -/* Author - Amit Dutta, Date - 5th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: E(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc024.c b/Semester_1/letusc/luc024.c @@ -6,7 +6,6 @@ /* Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not. */ -/* Author - Amit Dutta, Date - 5th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: E(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc025.c b/Semester_1/letusc/luc025.c @@ -6,7 +6,6 @@ /* Write a program to find the greates of the three numbers entered through the keyboard. Use conditional operators. */ -/* Author - Amit Dutta, Date - 6th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: E(c) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc026.c b/Semester_1/letusc/luc026.c @@ -6,7 +6,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 6th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 73, Qn No.: E(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc027.c b/Semester_1/letusc/luc027.c @@ -21,7 +21,6 @@ return 0; } */ -/* Author - Amit Dutta, Date - 6th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 73, Qn No.: E(e) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc028.c b/Semester_1/letusc/luc028.c @@ -6,7 +6,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 7th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc029.c b/Semester_1/letusc/luc029.c @@ -8,7 +8,6 @@ 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) */ -/* Author - Amit Dutta, Date - 7th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc030.c b/Semester_1/letusc/luc030.c @@ -14,7 +14,6 @@ always wins. Rules for the game are as follows : - After the person picks, the computer does its picking. - Whoever is forced to pick up the last matchstick loses the game. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(c) */ /* My Plan: The total number of matchsticks is 21. To guarantee a win, diff --git a/Semester_1/letusc/luc031-logic.c b/Semester_1/letusc/luc031-logic.c @@ -8,7 +8,6 @@ /* Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(d) */ /* diff --git a/Semester_1/letusc/luc031.c b/Semester_1/letusc/luc031.c @@ -6,7 +6,6 @@ /* Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc032.c b/Semester_1/letusc/luc032.c @@ -8,7 +8,6 @@ (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.) */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(e) */ // using array diff --git a/Semester_1/letusc/luc033.c b/Semester_1/letusc/luc033.c @@ -7,7 +7,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(f) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc034.c b/Semester_1/letusc/luc034.c @@ -10,7 +10,6 @@ form : 29 * 1 = 29 29 * 2 = 58 */ -/* Author - Amit Dutta, Date - 20th OCT, 2025 */ /* Let Us C, Chap- 6, Page - 105, Qn No.: B(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc035.c b/Semester_1/letusc/luc035.c @@ -10,7 +10,6 @@ person can be calculated using the following formula. 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 */ -/* Author - Amit Dutta, Date - 20th OCT, 2025 */ /* Let Us C, Chap- 6, Page - 105, Qn No.: B(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc036.c b/Semester_1/letusc/luc036.c @@ -10,7 +10,6 @@ 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' */ -/* Author - Amit Dutta, Date - 20th OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(c) */ // DEVELOPMENT STATUS: This implementation is currently untested. diff --git a/Semester_1/letusc/luc037.c b/Semester_1/letusc/luc037.c @@ -8,7 +8,6 @@ (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. */ -/* Author - Amit Dutta, Date - 21st OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(d) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc038.c b/Semester_1/letusc/luc038.c @@ -6,7 +6,6 @@ /* Write a program to generate all Pythagorean Triplets with slide length less than or equal to 30. */ -/* Author - Amit Dutta, Date - 21st OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(e) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc039.c b/Semester_1/letusc/luc039.c @@ -8,7 +8,6 @@ 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. */ -/* Author - Amit Dutta, Date - 21st OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(f) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc040-logic.c b/Semester_1/letusc/luc040-logic.c @@ -10,7 +10,6 @@ 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. */ -/* Author - Amit Dutta, Date - 22nd - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(g) */ // 1. INCLUDE SECTION diff --git a/Semester_1/letusc/luc040.c b/Semester_1/letusc/luc040.c @@ -10,7 +10,6 @@ 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. */ -/* Author - Amit Dutta, Date - 22nd - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(g) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc041.c b/Semester_1/letusc/luc041.c @@ -6,7 +6,6 @@ /* Write a program to print 24 hours of day with suitable suffixes like AM, PM, Noon and Midnight. */ -/* Author - Amit Dutta, Date - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(h) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc042.c b/Semester_1/letusc/luc042.c @@ -11,7 +11,6 @@ 7 8 9 10 */ -/* Author - Amit Dutta, Date - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(i) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc043.c b/Semester_1/letusc/luc043.c @@ -19,7 +19,6 @@ number of subjects he has failed in. Use the following logic. subject, then he does not get any grace. Otherwise, he gets a grace of 5 marks. */ -/* Author - Amit Dutta, Date - 28th OCT, 2025 */ /* Let Us C, Chap- 7, Page - 125, Qn No.: C */ #include <stdio.h> diff --git a/Semester_1/letusc/luc044.c b/Semester_1/letusc/luc044.c @@ -6,7 +6,6 @@ /* Any year is entered through the keyboard. Write a function to determine whether the year is aleap year or not. */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap- 8, Page - 144, Qn No.: C(1) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc045.c b/Semester_1/letusc/luc045.c @@ -11,7 +11,6 @@ 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 */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap- 8, Page - 144, Qn No.: C(2) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc046.c b/Semester_1/letusc/luc046.c @@ -9,7 +9,6 @@ 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. */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap- 9, Page - 163, Qn No.: C(a) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc047.c b/Semester_1/letusc/luc047.c @@ -8,7 +8,6 @@ and returns the equivalent weight in Grams, Tons and pounds. Call this fuction from main() and print the results in main() */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap- 9, Page - 163, Qn No.: C(b) */ #include <stdio.h> diff --git a/Semester_1/letusc/luc048.c b/Semester_1/letusc/luc048.c @@ -14,7 +14,6 @@ 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? */ -/* Author - Amit Dutta, Date - 25th November, 2025 */ /* Let Us C, Chap- 9 (Pointers), Page - 163, Qn No.: C(c) */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem001.c b/Semester_1/letusc/lucproblem001.c @@ -8,7 +8,6 @@ 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. */ -/* Author - Amit Dutta, Date - 29th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 22, Problem 2.3 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem002.c b/Semester_1/letusc/lucproblem002.c @@ -7,7 +7,6 @@ /* A year is entered through the keyboard, write a program to determine whether the year is leap or not. Use the logical operators && and || . */ -/* Author - Amit Dutta, Date - 02th OCT, 2025 */ /* Let Us C, Chap - 4, Page - 64, Problem 4.1 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem003.c b/Semester_1/letusc/lucproblem003.c @@ -14,7 +14,6 @@ The following table shows the range of ASCII values for various characters : 0 - 9 48 - 57 special symbols 0 - 47, 58 - 64, 91 - 96, 123 - 127 */ -/* Author - Amit Dutta, Date - 02th OCT, 2025 */ /* Let Us C, Chap - 4, Page - 65, Problem 4.2 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem004.c b/Semester_1/letusc/lucproblem004.c @@ -8,7 +8,6 @@ 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. */ -/* Author - Amit Dutta, Date - 02th OCT, 2025 */ /* Let Us C, Chap - 4, Page - 66, Problem 4.3 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem005.c b/Semester_1/letusc/lucproblem005.c @@ -8,7 +8,6 @@ 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. */ /* ONLY WHILE LOOP ALLOWED */ -/* Author - Amit Dutta, Date - 07th OCT, 2025 */ /* Let Us C, Chap - 5, Page - 83, Problem 5.1 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem006.c b/Semester_1/letusc/lucproblem006.c @@ -6,7 +6,6 @@ /* Write a program to find the factorial value of any number entered through the keyboard. */ -/* Author - Amit Dutta, Date - 07th OCT, 2025 */ /* Let Us C, Chap - 5, Page - 84, Problem 5.2 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem007.c b/Semester_1/letusc/lucproblem007.c @@ -6,7 +6,6 @@ /* Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another */ -/* Author - Amit Dutta, Date - 07th OCT, 2025 */ /* Let Us C, Chap - 5, Page - 84, Problem 5.3 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem008.c b/Semester_1/letusc/lucproblem008.c @@ -5,7 +5,6 @@ */ /* Write a problem to print all the prime numbers from 1 to 300. */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 101, Problem 6.1 */ // Method: Trial Division (Optimized to check up to sqrt(N)) diff --git a/Semester_1/letusc/lucproblem009.c b/Semester_1/letusc/lucproblem009.c @@ -8,7 +8,6 @@ for loop. 1 / 1! + 2 / 2! + 3 / 3! + ... */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 102, Problem 6.2 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem010-complex.c b/Semester_1/letusc/lucproblem010-complex.c @@ -10,7 +10,6 @@ from 1-digit numbers up to 4-digit numbers using a main loop to control the number of digits (1 to 3333). */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 103, Problem 6.3 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem010.c b/Semester_1/letusc/lucproblem010.c @@ -7,7 +7,6 @@ */ /* Write a program to generate all combination of 1, 2 and 3 using for loop. */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 103, Problem 6.3 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem011.c b/Semester_1/letusc/lucproblem011.c @@ -15,7 +15,6 @@ 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. */ -/* Author - Amit Dutta, Date - 26th OCT, 2025 */ /* Let Us C, Chap - 7, Page - 118, Problem 7.1 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem012.c b/Semester_1/letusc/lucproblem012.c @@ -5,7 +5,6 @@ */ /* Write a Function power(a, b), to calculate the value of a raised to b */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap - 8, Page - 141, Problem 8.2 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem013.c b/Semester_1/letusc/lucproblem013.c @@ -7,7 +7,6 @@ /* 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 */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap - 8, Page - 141, Problem 8.3 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem014-short.c b/Semester_1/letusc/lucproblem014-short.c @@ -9,7 +9,6 @@ /* 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() */ -/* Author - Amit Dutta, Date - 23th November, 2025 */ /* Let Us C, Chap - 9, Page 159, Problem 9.1 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem014.c b/Semester_1/letusc/lucproblem014.c @@ -9,7 +9,6 @@ /* 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() */ -/* Author - Amit Dutta, Date - 23th November, 2025 */ /* Let Us C, Chap - 9, Page 158, Problem 9.1 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem015.c b/Semester_1/letusc/lucproblem015.c @@ -8,7 +8,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap - 9, Page 159, Problem 9.2 */ #include <stdio.h> diff --git a/Semester_1/letusc/lucproblem016.c b/Semester_1/letusc/lucproblem016.c @@ -14,7 +14,6 @@ Figure 9.4: value: 7fff9489c7a0, memory_address: 7fff4fd134b8 value: 7fff9489c79c, memory_address: 7fff9489c7a0 */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap - 9, Page 160, Problem 9.3 */ #include <stdio.h> diff --git a/Semester_1/practice-c/pc001.c b/Semester_1/practice-c/pc001.c @@ -12,7 +12,6 @@ 1 2 3 4 5 for n = 5 */ -/* Author - Amit Dutta, Date - 02nd October, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/practice-c/pc002.c b/Semester_1/practice-c/pc002.c @@ -13,7 +13,6 @@ for n = 5 */ -/* Author - Amit Dutta, Date - 02nd NOVEMBER, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/practice-c/pc006.c b/Semester_1/practice-c/pc006.c @@ -7,7 +7,6 @@ */ /* Prime number check */ -/* Author - Amit Dutta, Date - 03rd NOVEMBER, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/practice-c/pc007.c b/Semester_1/practice-c/pc007.c @@ -5,7 +5,6 @@ */ /* Armstrong number check only for three digit */ -/* Author - Amit Dutta, Date - 03rd NOVEMBER, 2025 */ #include <stdio.h> diff --git a/Semester_1/practice-c/pc008.c b/Semester_1/practice-c/pc008.c @@ -5,7 +5,6 @@ */ /* Factorial upto N */ -/* Author - Amit Dutta, Date - 03rd November, 2025 */ #include <stdio.h> diff --git a/Semester_1/practice-c/pc009.c b/Semester_1/practice-c/pc009.c @@ -5,7 +5,6 @@ */ /* Sum of digit */ -/* Author - Amit Dutta, Date - 04th November, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/practice-c/pc010.c b/Semester_1/practice-c/pc010.c @@ -5,7 +5,6 @@ */ /* Reverse a number */ -/* Author - Amit Dutta, Date - 04th November, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/practice-c/pc011.c b/Semester_1/practice-c/pc011.c @@ -10,7 +10,6 @@ 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. */ -/* Author - Amit Dutta, Date - 11th November, 2025 */ #include <stdio.h> #define true 1 diff --git a/Semester_1/tuition-c/APC-PRAC-001.c b/Semester_1/tuition-c/APC-PRAC-001.c @@ -6,7 +6,6 @@ /* WAP to calculate area and perimeter of a rectangle by accepting length and breadth as input. */ -// Author - Amit Dutta, Date - 18th SEP, 2025 #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/APC-PRAC-002.c b/Semester_1/tuition-c/APC-PRAC-002.c @@ -6,7 +6,6 @@ /* WAP to calculate area of a circle using math library method. Take radius of the circle as input. */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/APC-PRAC-003.c b/Semester_1/tuition-c/APC-PRAC-003.c @@ -5,7 +5,6 @@ */ /* WAP to accept diagonal of a square and calculate area, parimeter */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/APC-PRAC-004.c b/Semester_1/tuition-c/APC-PRAC-004.c @@ -5,7 +5,6 @@ */ /* WAP to calculate and display radius of a circle by taking the area as input. */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/APC-PRAC-005.c b/Semester_1/tuition-c/APC-PRAC-005.c @@ -6,7 +6,6 @@ /* WAP a program that accept number of days as input and represent it as years, months and days. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/APC-PRAC-006.c b/Semester_1/tuition-c/APC-PRAC-006.c @@ -5,7 +5,6 @@ */ /* WAP that accept seconds as input and represent it an hours, minutes and seconds. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/APC-PRAC-007.c b/Semester_1/tuition-c/APC-PRAC-007.c @@ -12,7 +12,6 @@ net salary generated by below formula. gross salary = basic salary + da + hra net salary = gross salary - pf */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/APC-PRAC-008.c b/Semester_1/tuition-c/APC-PRAC-008.c @@ -6,7 +6,6 @@ /* WAP to multiply and divide a number by 4 without using multiplication and division operator. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/APC-PRAC-009.c b/Semester_1/tuition-c/APC-PRAC-009.c @@ -5,7 +5,6 @@ */ /* WAP to swap two integer variable without using Third variable. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/APC-PRAC-010.c b/Semester_1/tuition-c/APC-PRAC-010.c @@ -8,7 +8,6 @@ (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) take a, b, c as input. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/APC-PRAC-011.c b/Semester_1/tuition-c/APC-PRAC-011.c @@ -6,7 +6,6 @@ /* 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 */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/APC-PRAC-012.c b/Semester_1/tuition-c/APC-PRAC-012.c @@ -5,7 +5,6 @@ */ /* Write a program to input three integer and find out second largest */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/APC-PRAC-013.c b/Semester_1/tuition-c/APC-PRAC-013.c @@ -6,7 +6,6 @@ /* 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 */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/APC-PRAC-014.c b/Semester_1/tuition-c/APC-PRAC-014.c @@ -13,7 +13,6 @@ the sum and number of days as input. 365 - 500 9.25 % > 500 9.15 % */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/APC-PRAC-015.c b/Semester_1/tuition-c/APC-PRAC-015.c @@ -6,7 +6,6 @@ /* Write a program to display all numbers between lb (lower bound) and up (upper bound) which ends with digit 7 or divisible by 7. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202501.c (LAB), APC-PRAC-015.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-016.c b/Semester_1/tuition-c/APC-PRAC-016.c @@ -5,7 +5,6 @@ */ /* Write a program to check palindrome number. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202502.c (LAB), APC-PRAC-016.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-017.c b/Semester_1/tuition-c/APC-PRAC-017.c @@ -5,7 +5,6 @@ */ /* Write a program to check perfect number. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202503.c (LAB), APC-PRAC-017.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-018.c b/Semester_1/tuition-c/APC-PRAC-018.c @@ -5,7 +5,6 @@ */ /* Write a program to check Automorphic Number. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202504.c (LAB), APC-PRAC-018.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-019.c b/Semester_1/tuition-c/APC-PRAC-019.c @@ -5,7 +5,6 @@ */ /* Write a program to find hcf of two numbers */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202501.c (LAB), APC-PRAC-019.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-020.c b/Semester_1/tuition-c/APC-PRAC-020.c @@ -5,7 +5,6 @@ */ /* Write a program to check if two number is co-prime or not */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202502.c (LAB), APC-PRAC-020.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-021.c b/Semester_1/tuition-c/APC-PRAC-021.c @@ -5,7 +5,6 @@ */ /* Write a program to check special number (sum of digit + product of digit = original number) */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202503.c (LAB), APC-PRAC-021.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-022.c b/Semester_1/tuition-c/APC-PRAC-022.c @@ -7,7 +7,6 @@ */ /* Write a program to accept a number and check whether the number is twisted prime or not */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202504.c (LAB), APC-PRAC-022.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-PRAC-023.c b/Semester_1/tuition-c/APC-PRAC-023.c @@ -10,7 +10,6 @@ (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, 15, ... upto n times */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202505.c (LAB), APC-PRAC-023.c (Local) // This code has not been compiled. diff --git a/Semester_1/tuition-c/APC-S-004.c b/Semester_1/tuition-c/APC-S-004.c @@ -5,7 +5,6 @@ */ /* Program to print first 10 natural numbers using while loop. */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation diff --git a/Semester_1/tuition-c/APC-S-005.c b/Semester_1/tuition-c/APC-S-005.c @@ -5,7 +5,6 @@ */ /* Write to reverse a number. */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation diff --git a/Semester_1/tuition-c/APC-S-006.c b/Semester_1/tuition-c/APC-S-006.c @@ -5,7 +5,6 @@ */ /* Write a program to print first 10 multiple of 5 */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation diff --git a/Semester_1/tuition-c/APC-S-007.c b/Semester_1/tuition-c/APC-S-007.c @@ -5,7 +5,6 @@ */ /* Write a program the sum of first 10 natural numbers. */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation diff --git a/Semester_1/tuition-c/P001.c b/Semester_1/tuition-c/P001.c @@ -5,7 +5,6 @@ */ //sample code -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P002.c b/Semester_1/tuition-c/P002.c @@ -5,7 +5,6 @@ */ //sample code with a new line charecter -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P003.c b/Semester_1/tuition-c/P003.c @@ -5,7 +5,6 @@ */ //WAP to perform addtion and multiplication of two integer numbers -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P004.c b/Semester_1/tuition-c/P004.c @@ -6,7 +6,6 @@ /* WAP to find and display the value of given expression : ((x+3)/4) - ((2x+4)/3) taking the value of x = 5 */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P005.c b/Semester_1/tuition-c/P005.c @@ -7,7 +7,6 @@ /* 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. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P006.c b/Semester_1/tuition-c/P006.c @@ -7,7 +7,6 @@ /* The normal temperature of human body is 98.6 Degree Fahrenheit. WAP to convert the temperature to Degree Celcius and display the output. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P007.c b/Semester_1/tuition-c/P007.c @@ -9,7 +9,6 @@ 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. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P008.c b/Semester_1/tuition-c/P008.c @@ -9,7 +9,6 @@ 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. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P009.c b/Semester_1/tuition-c/P009.c @@ -12,7 +12,6 @@ IMP : DA = 30% of Basic Pay Gross Salary = Basic Pay + DA + HRA Net Salary = Gross Salary - PF */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P010.c b/Semester_1/tuition-c/P010.c @@ -11,7 +11,6 @@ Hint : si = (p * r * t) / 100 a = p * ((1 + (r / 100)) ^ t) ci = a - p */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> diff --git a/Semester_1/tuition-c/P011.c b/Semester_1/tuition-c/P011.c @@ -10,7 +10,6 @@ given by the formula : WAP to calculate T take length(L) and gravity as input */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> diff --git a/Semester_1/tuition-c/P012.c b/Semester_1/tuition-c/P012.c @@ -7,7 +7,6 @@ /* WAP to swap two integer variable without using third variable */ // using Approch Mode : simple, slow, time consuming -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P013.c b/Semester_1/tuition-c/P013.c @@ -7,7 +7,6 @@ /* WAP to swap two integer variable without using third variable */ // using Approch Mode : complex, fast, less time consumimg -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> diff --git a/Semester_1/tuition-c/P014.c b/Semester_1/tuition-c/P014.c @@ -7,7 +7,6 @@ /* WAP to accept the diagonal of square. Find and display the area and perimeter of the square. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> diff --git a/Semester_1/tuition-c/P015.c b/Semester_1/tuition-c/P015.c @@ -7,7 +7,6 @@ /*WAP to accept number of days and display it after converting into number of years, months and days */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { diff --git a/Semester_1/tuition-c/P016.c b/Semester_1/tuition-c/P016.c @@ -6,7 +6,6 @@ /* WAP to calculate and display radius of a circle by taking the area as input */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> diff --git a/Semester_1/tuition-c/P017.c b/Semester_1/tuition-c/P017.c @@ -5,7 +5,6 @@ */ /* Find maximum between three number. */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P018.c b/Semester_1/tuition-c/P018.c @@ -7,7 +7,6 @@ /* WAP to input the cost price and selling price and calculate profit, profit percentage, loss percentage or display the manage nither profit nor loss. */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P019.c b/Semester_1/tuition-c/P019.c @@ -12,7 +12,6 @@ the amount to be paid by the passanger. next 10KM RS 10/KM more than 25KM RS 9/KM */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P020.c b/Semester_1/tuition-c/P020.c @@ -12,7 +12,6 @@ taking the sum and number of days as input. exact 365 days 9.0 % more than 365 days 8.5 % */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P021.c b/Semester_1/tuition-c/P021.c @@ -6,7 +6,6 @@ /* WAP to input a positive number and check if it is a perfect square number or not. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P022.c b/Semester_1/tuition-c/P022.c @@ -5,7 +5,6 @@ */ /* WAP to find out smallest of three numbers without using if_else block. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P023.c b/Semester_1/tuition-c/P023.c @@ -6,7 +6,6 @@ /* WAP to input the total cost and compute the amount to be paid by the customer. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P024.c b/Semester_1/tuition-c/P024.c @@ -5,7 +5,6 @@ */ /* WAP to check whether a year is leapyear or not. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P025.c b/Semester_1/tuition-c/P025.c @@ -12,7 +12,6 @@ bill amount according to the given condition : above 250 unit Rs. 1.50 per unit And additional charge of 20 percent is added to the bill. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P026.c b/Semester_1/tuition-c/P026.c @@ -10,7 +10,6 @@ the interest earned si = (p * r * t) / 100 compoundInterest = p * ((1 + r / 100)^t - 1) */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/P027.c b/Semester_1/tuition-c/P027.c @@ -16,7 +16,6 @@ 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). */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P028.c b/Semester_1/tuition-c/P028.c @@ -5,7 +5,6 @@ */ /* WAP to calculate factorial of a number */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P029.c b/Semester_1/tuition-c/P029.c @@ -5,7 +5,6 @@ */ /* WAP to perform addition of first n natural numbers. sum = 1 + 2 + 3 + ... */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P030.c b/Semester_1/tuition-c/P030.c @@ -7,7 +7,6 @@ */ /* Display the first 15 terms of the series. */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/P031.c b/Semester_1/tuition-c/P031.c @@ -5,7 +5,6 @@ */ /* Find the sum of the series */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/P032.c b/Semester_1/tuition-c/P032.c @@ -6,7 +6,6 @@ /* 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*/ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P033.c b/Semester_1/tuition-c/P033.c @@ -5,7 +5,6 @@ */ /* WAP to calculate the sum of even digits and odd digits. Number will be provided by user. */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P034.c b/Semester_1/tuition-c/P034.c @@ -6,7 +6,6 @@ /* Get sum of even position digit and odd position digit */ /* Counting starts from the rightmost digit as position 1 (Odd). */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P035.c b/Semester_1/tuition-c/P035.c @@ -6,7 +6,6 @@ /* WAP to input an int number and display the product of the successors of even digits of the number entered by user. */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> #include <stdbool.h> diff --git a/Semester_1/tuition-c/P036.c b/Semester_1/tuition-c/P036.c @@ -5,7 +5,6 @@ */ /* sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/P037.c b/Semester_1/tuition-c/P037.c @@ -5,7 +5,6 @@ */ /* sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P038.c b/Semester_1/tuition-c/P038.c @@ -7,7 +7,6 @@ */ /* Write a program to check prime number */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/P039.c b/Semester_1/tuition-c/P039.c @@ -5,7 +5,6 @@ */ /* Write a program to print all the factors of a postive integer */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P040.c b/Semester_1/tuition-c/P040.c @@ -5,7 +5,6 @@ */ /* Write a program to calculate HCF of two positive number */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P041.c b/Semester_1/tuition-c/P041.c @@ -7,7 +7,6 @@ /* Write a program to enter two numbers and check they are co-prime or not. co-prime when HCF = 1 */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P042.c b/Semester_1/tuition-c/P042.c @@ -8,7 +8,6 @@ /* Write a program to accept a number and check whether the number is twisted prime or not. */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> #include <math.h> diff --git a/Semester_1/tuition-c/P043.c b/Semester_1/tuition-c/P043.c @@ -5,7 +5,6 @@ */ /* Write a program to check palindrome number. */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> int main() diff --git a/Semester_1/tuition-c/P044.c b/Semester_1/tuition-c/P044.c @@ -12,7 +12,6 @@ number is Pronic number or not. which is the product of two consecutive integer. Ex: 20 = 4 * 5 */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ // using boolean... /* diff --git a/Semester_1/tuition-c/P045.c b/Semester_1/tuition-c/P045.c @@ -12,7 +12,6 @@ 1 2 3 4 1 2 3 4 5 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P046.c b/Semester_1/tuition-c/P046.c @@ -12,7 +12,6 @@ 4 3 2 1 5 4 3 2 1 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P047.c b/Semester_1/tuition-c/P047.c @@ -12,7 +12,6 @@ 5 4 3 2 5 4 3 2 1 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P048.c b/Semester_1/tuition-c/P048.c @@ -12,7 +12,6 @@ 7 8 9 10 11 12 13 14 15 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P049.c b/Semester_1/tuition-c/P049.c @@ -12,7 +12,6 @@ @ @ @ @ # # # # # */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> diff --git a/Semester_1/tuition-c/P050-SHORT.c b/Semester_1/tuition-c/P050-SHORT.c @@ -7,7 +7,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 08th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P050.c b/Semester_1/tuition-c/P050.c @@ -7,7 +7,6 @@ /* 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. */ -/* Author - Amit Dutta, Date - 08th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P051.c b/Semester_1/tuition-c/P051.c @@ -7,7 +7,6 @@ /* 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 */ -/* Author - Amit Dutta, Date - 09th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P052.c b/Semester_1/tuition-c/P052.c @@ -6,7 +6,6 @@ /* 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) */ -/* Author - Amit Dutta, Date - 09th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P053.c b/Semester_1/tuition-c/P053.c @@ -7,7 +7,6 @@ */ /* Print all pattern */ -/* Author - Amit Dutta, Date - 09th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P054.c b/Semester_1/tuition-c/P054.c @@ -7,7 +7,6 @@ */ /* WAP to check Krishnamurty number using user defined methods/functions. */ -/* Author - Amit Dutta, Date - 15th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P055.c b/Semester_1/tuition-c/P055.c @@ -5,7 +5,6 @@ */ /* WAP to print n terms of Fibbonacci Series (Starting from term 0) */ -/* Author - Amit Dutta, Date - 15th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P056.c b/Semester_1/tuition-c/P056.c @@ -5,7 +5,6 @@ */ /* WAP to swap the value of a and b using user defined method. */ -/* Author - Amit Dutta, Date - 22th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P057.c b/Semester_1/tuition-c/P057.c @@ -7,7 +7,6 @@ /* WAP to display the series using user defined method. 0, 7, 26, 63, ... upto n terms using void series(int n) */ -/* Author - Amit Dutta, Date - 22th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P058.c b/Semester_1/tuition-c/P058.c @@ -5,7 +5,6 @@ */ /* WAP to display ASCII code of Alphabets (A - Z) using void displayASCII() */ -/* Author - Amit Dutta, Date - 22th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/Semester_1/tuition-c/P059.c b/Semester_1/tuition-c/P059.c @@ -9,9 +9,8 @@ /* 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); - voidd dispaly(int a[], int n); + void dispaly(int a[], int n); */ -/* Author - Amit Dutta, Date - 29th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. diff --git a/docs/index.html b/docs/index.html @@ -3914,7 +3914,6 @@ int main() { * for example: 1 0 1 0 */ -/* Author - Amit Dutta, Date - 12th October, 2025 */ #include <stdio.h> int main() @@ -5639,7 +5638,6 @@ void reverseArray(int arr[], int size) // khurapati idea no. : 1 // Idea : we can use the side effect of printf function to get length of any string or number -// Author - Amit Dutta, Date - 16-10-2025 #include <stdio.h> int main() @@ -5683,7 +5681,6 @@ int main() * License: MIT | Copyright (c) 2025 Amit Dutta */ -/* Author - Amit Dutta, Date - 05th November, 2025 */ /* Plan - checking for edge case */ @@ -5966,7 +5963,6 @@ int dsort(int *arr, int n) /* Temperature of a city in fahrenheit degrees is input through the keyboard. WAP to convert this temperature into Centigrade degrees. */ -/* Author - Amit Dutta, Date - 13 sep, 2025 */ /* Chapter 1; Page 19; Question NO.: F(a) */ #include<stdio.h> @@ -6005,7 +6001,6 @@ int main() { 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. */ -/* Author - Amit Dutta, Date - 16th SEP, 2025 */ /* Let Us C; Page - 19; Chap- 1; QNo.: F(b) */ #include <stdio.h> @@ -6056,7 +6051,6 @@ 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. */ -/* Author - Amit Dutta, Date - 16th SEP, 2025 */ /* Let Us C; Page - 19; Chap- 1; QNo.: F(c) */ #include<stdio.h> @@ -6098,7 +6092,6 @@ int main() { /* 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 %) */ -/* Author - Amit Dutta, Date - 28th SEP, 2025 */ /* Let Us C; Page - 37; Chap- 2; QNo.: G(a) */ #include <stdio.h> @@ -6146,7 +6139,6 @@ int main() 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) */ -/* Author - Amit Dutta, Date - 28th SEP, 2025 */ /* Let Us C; Page - 37; Chap- 2; QNo.: G(b) */ #include <stdio.h> @@ -6188,7 +6180,6 @@ int main() miles is : D = 3963 cos^-1(sin L1 sin L2 + cos L1 cos L2 * cos(G2 - G1)) */ -/* Author - Amit Dutta, Date - 29th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn no.: G(c) */ #include <stdio.h> @@ -6236,7 +6227,6 @@ 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). */ -/* Author - Amit Dutta, Date - 30th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn No.: G(d) */ #include <stdio.h> @@ -6273,7 +6263,6 @@ int main() /* If value of an angle is input through the keyboard, write a program to print all its trigonometric ratios. */ -/* Author - Amit Dutta, Date - 30th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn No.: G(e) */ #include <stdio.h> @@ -6323,7 +6312,6 @@ int main() /* Two numbers are input through the keyboard into two locations C and D. Write a program to interchange the contents of C and D. */ -/* Author - Amit Dutta, Date - 30th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 37, Qn No.: G(d) */ #include <stdio.h> @@ -6367,7 +6355,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap - 3, Page - 53, Qn No.: f(a) */ #include <stdio.h> @@ -6417,7 +6404,6 @@ int main() /* If ages of Ram, Shyam and Ajay are input through the keyboard, write a program to determine the youngest of the three. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(b) */ #include <stdio.h> @@ -6460,7 +6446,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(c) */ #include <stdio.h> @@ -6499,7 +6484,6 @@ int main() /* Write a program to find the absolute value of a number entered through the keyboard. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(d) */ #include <stdio.h> @@ -6538,7 +6522,6 @@ int main() 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(e) */ #include <stdio.h> @@ -6580,7 +6563,6 @@ int main() /* Given three points (x1, y1), (x2, y2), and (x3, y3), write a program to check if the three poins fall on one straight line. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(f) */ #include <stdio.h> @@ -6630,7 +6612,6 @@ int main() /* 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.) */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(g) */ #include <stdio.h> @@ -6691,7 +6672,6 @@ int main() */ /* Given a point (x, y), write a program to find out if it lies on X-axis, Y-axis or origin. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(h) */ #include <stdio.h> @@ -6738,7 +6718,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(i) */ #include <stdio.h> @@ -6847,7 +6826,6 @@ int main() { /* 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. */ -/* Author - Amit Dutta, Date - 1st OCT, 2025 */ /* Let Us C, Chap- 3, Page - 53, Qn No.: f(i) */ #include <stdio.h> @@ -6906,7 +6884,6 @@ int main() { /* 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. */ -/* Author - Amit Dutta, Date - 3rd OCT, 2025 */ /* Let Us C, Chap- 4, Page - 71, Qn No.: D(a) */ #include <stdio.h> @@ -6989,7 +6966,6 @@ Write a program that converts RGB color to CMYK color as per the following formu 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. */ -/* Author - Amit Dutta, Date - 4th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 71, Qn No.: D(b) */ #include <stdio.h> @@ -7081,7 +7057,6 @@ 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. */ -/* Author - Amit Dutta, Date - 4th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 71, Qn No.: D(c) */ #include <stdio.h> @@ -7169,7 +7144,6 @@ the BMI catagory as per the following table. Obese 30 to 39.9 Morbidly Obese >= 40 */ -/* Author - Amit Dutta, Date - 4th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: D(d) */ #include <stdio.h> @@ -7225,7 +7199,6 @@ int main() lower case alphabet or not. (2) Whether a character entered through the keyboard is a special symbol or not. */ -/* Author - Amit Dutta, Date - 5th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: E(a) */ #include <stdio.h> @@ -7264,7 +7237,6 @@ int main() /* Write a program using conditional operators to determine whether a year entered through the keyboard is a leap year or not. */ -/* Author - Amit Dutta, Date - 5th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: E(b) */ #include <stdio.h> @@ -7299,7 +7271,6 @@ int main() /* Write a program to find the greates of the three numbers entered through the keyboard. Use conditional operators. */ -/* Author - Amit Dutta, Date - 6th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 72, Qn No.: E(c) */ #include <stdio.h> @@ -7335,7 +7306,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 6th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 73, Qn No.: E(d) */ #include <stdio.h> @@ -7396,7 +7366,6 @@ int main() return 0; } */ -/* Author - Amit Dutta, Date - 6th OCT, 2025 */ /* Let Us C, Chap- 4, Page - 73, Qn No.: E(e) */ #include <stdio.h> @@ -7432,7 +7401,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 7th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(a) */ #include <stdio.h> @@ -7473,7 +7441,6 @@ int main() 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) */ -/* Author - Amit Dutta, Date - 7th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(b) */ #include <stdio.h> @@ -7529,7 +7496,6 @@ always wins. Rules for the game are as follows : - After the person picks, the computer does its picking. - Whoever is forced to pick up the last matchstick loses the game. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(c) */ /* My Plan: The total number of matchsticks is 21. To guarantee a win, @@ -7620,7 +7586,6 @@ int main() /* Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(d) */ /* @@ -7741,7 +7706,6 @@ int main() { /* Write a program to enter numbers till the user wants. At the end it should display the count of positive, negative and zeros entered. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(d) */ #include <stdio.h> @@ -7804,7 +7768,6 @@ int main() (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.) */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(e) */ // using array @@ -7855,7 +7818,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ /* Let Us C, Chap- 5, Page - 87, Qn No.: B(f) */ #include <stdio.h> @@ -7918,7 +7880,6 @@ form : 29 * 1 = 29 29 * 2 = 58 */ -/* Author - Amit Dutta, Date - 20th OCT, 2025 */ /* Let Us C, Chap- 6, Page - 105, Qn No.: B(a) */ #include <stdio.h> @@ -7959,7 +7920,6 @@ person can be calculated using the following formula. 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 */ -/* Author - Amit Dutta, Date - 20th OCT, 2025 */ /* Let Us C, Chap- 6, Page - 105, Qn No.: B(b) */ #include <stdio.h> @@ -8005,7 +7965,6 @@ 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' */ -/* Author - Amit Dutta, Date - 20th OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(c) */ // DEVELOPMENT STATUS: This implementation is currently untested. @@ -8059,7 +8018,6 @@ int main() (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. */ -/* Author - Amit Dutta, Date - 21st OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(d) */ #include <stdio.h> @@ -8107,7 +8065,6 @@ int main() /* Write a program to generate all Pythagorean Triplets with slide length less than or equal to 30. */ -/* Author - Amit Dutta, Date - 21st OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(e) */ #include <stdio.h> @@ -8156,7 +8113,6 @@ int main() 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. */ -/* Author - Amit Dutta, Date - 21st OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(f) */ #include <stdio.h> @@ -8198,7 +8154,6 @@ int main() 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. */ -/* Author - Amit Dutta, Date - 22nd - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(g) */ // 1. INCLUDE SECTION @@ -8349,7 +8304,6 @@ int main() 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. */ -/* Author - Amit Dutta, Date - 22nd - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(g) */ #include <stdio.h> @@ -8433,7 +8387,6 @@ int main() /* Write a program to print 24 hours of day with suitable suffixes like AM, PM, Noon and Midnight. */ -/* Author - Amit Dutta, Date - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(h) */ #include <stdio.h> @@ -8482,7 +8435,6 @@ int main() 7 8 9 10 */ -/* Author - Amit Dutta, Date - 23rd OCT, 2025 */ /* Let Us C, Chap- 6, Page - 106, Qn No.: B(i) */ #include <stdio.h> @@ -8549,7 +8501,6 @@ number of subjects he has failed in. Use the following logic. subject, then he does not get any grace. Otherwise, he gets a grace of 5 marks. */ -/* Author - Amit Dutta, Date - 28th OCT, 2025 */ /* Let Us C, Chap- 7, Page - 125, Qn No.: C */ #include <stdio.h> @@ -8621,7 +8572,6 @@ int main() /* Any year is entered through the keyboard. Write a function to determine whether the year is aleap year or not. */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap- 8, Page - 144, Qn No.: C(1) */ #include <stdio.h> @@ -8675,7 +8625,6 @@ 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 */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap- 8, Page - 144, Qn No.: C(2) */ #include <stdio.h> @@ -8759,7 +8708,6 @@ 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. */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap- 9, Page - 163, Qn No.: C(a) */ #include <stdio.h> @@ -8813,7 +8761,6 @@ void circularShift(int *x, int *y, int *z) and returns the equivalent weight in Grams, Tons and pounds. Call this fuction from main() and print the results in main() */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap- 9, Page - 163, Qn No.: C(b) */ #include <stdio.h> @@ -8871,7 +8818,6 @@ 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? */ -/* Author - Amit Dutta, Date - 25th November, 2025 */ /* Let Us C, Chap- 9 (Pointers), Page - 163, Qn No.: C(c) */ #include <stdio.h> @@ -9066,7 +9012,6 @@ Test Point (101.1, 201.2) is inside ABC. 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. */ -/* Author - Amit Dutta, Date - 29th SEP, 2025 */ /* Let Us C, Chap - 2, Page - 22, Problem 2.3 */ #include <stdio.h> @@ -9119,7 +9064,6 @@ int main() /* A year is entered through the keyboard, write a program to determine whether the year is leap or not. Use the logical operators && and || . */ -/* Author - Amit Dutta, Date - 02th OCT, 2025 */ /* Let Us C, Chap - 4, Page - 64, Problem 4.1 */ #include <stdio.h> @@ -9165,7 +9109,6 @@ The following table shows the range of ASCII values for various characters : 0 - 9 48 - 57 special symbols 0 - 47, 58 - 64, 91 - 96, 123 - 127 */ -/* Author - Amit Dutta, Date - 02th OCT, 2025 */ /* Let Us C, Chap - 4, Page - 65, Problem 4.2 */ #include <stdio.h> @@ -9210,7 +9153,6 @@ int main() 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. */ -/* Author - Amit Dutta, Date - 02th OCT, 2025 */ /* Let Us C, Chap - 4, Page - 66, Problem 4.3 */ #include <stdio.h> @@ -9256,7 +9198,6 @@ int main() 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. */ /* ONLY WHILE LOOP ALLOWED */ -/* Author - Amit Dutta, Date - 07th OCT, 2025 */ /* Let Us C, Chap - 5, Page - 83, Problem 5.1 */ #include <stdio.h> @@ -9313,7 +9254,6 @@ int main() /* Write a program to find the factorial value of any number entered through the keyboard. */ -/* Author - Amit Dutta, Date - 07th OCT, 2025 */ /* Let Us C, Chap - 5, Page - 84, Problem 5.2 */ #include <stdio.h> @@ -9371,7 +9311,6 @@ int main() /* Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another */ -/* Author - Amit Dutta, Date - 07th OCT, 2025 */ /* Let Us C, Chap - 5, Page - 84, Problem 5.3 */ #include <stdio.h> @@ -9429,7 +9368,6 @@ int main() */ /* Write a problem to print all the prime numbers from 1 to 300. */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 101, Problem 6.1 */ // Method: Trial Division (Optimized to check up to sqrt(N)) @@ -9490,7 +9428,6 @@ int main() for loop. 1 / 1! + 2 / 2! + 3 / 3! + ... */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 102, Problem 6.2 */ #include <stdio.h> @@ -9534,7 +9471,6 @@ int main() from 1-digit numbers up to 4-digit numbers using a main loop to control the number of digits (1 to 3333). */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 103, Problem 6.3 */ #include <stdio.h> @@ -9611,7 +9547,6 @@ int main() */ /* Write a program to generate all combination of 1, 2 and 3 using for loop. */ -/* Author - Amit Dutta, Date - 24th OCT, 2025 */ /* Let Us C, Chap - 6, Page - 103, Problem 6.3 */ #include <stdio.h> @@ -9696,7 +9631,6 @@ 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. */ -/* Author - Amit Dutta, Date - 26th OCT, 2025 */ /* Let Us C, Chap - 7, Page - 118, Problem 7.1 */ #include <stdio.h> @@ -9903,7 +9837,6 @@ int main() */ /* Write a Function power(a, b), to calculate the value of a raised to b */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap - 8, Page - 141, Problem 8.2 */ #include <stdio.h> @@ -9956,7 +9889,6 @@ int main() /* 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 */ -/* Author - Amit Dutta, Date - 17th November, 2025 */ /* Let Us C, Chap - 8, Page - 141, Problem 8.3 */ #include <stdio.h> @@ -10017,7 +9949,6 @@ int main() /* 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() */ -/* Author - Amit Dutta, Date - 23th November, 2025 */ /* Let Us C, Chap - 9, Page 159, Problem 9.1 */ #include <stdio.h> @@ -10101,7 +10032,6 @@ void stats(double *sum, double *average, double *standardDeviation) /* 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() */ -/* Author - Amit Dutta, Date - 23th November, 2025 */ /* Let Us C, Chap - 9, Page 158, Problem 9.1 */ #include <stdio.h> @@ -10226,7 +10156,6 @@ void stats(double *sum, double *average, double *standardDeviation) /* 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. */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap - 9, Page 159, Problem 9.2 */ #include <stdio.h> @@ -10300,7 +10229,6 @@ Figure 9.4: value: 7fff9489c7a0, memory_address: 7fff4fd134b8 value: 7fff9489c79c, memory_address: 7fff9489c7a0 */ -/* Author - Amit Dutta, Date - 24th November, 2025 */ /* Let Us C, Chap - 9, Page 160, Problem 9.3 */ #include <stdio.h> @@ -10369,7 +10297,6 @@ int main() /* WAP to calculate area and perimeter of a rectangle by accepting length and breadth as input. */ -// Author - Amit Dutta, Date - 18th SEP, 2025 #include<stdio.h> int main() { @@ -10408,7 +10335,6 @@ int main() { /* WAP to calculate area of a circle using math library method. Take radius of the circle as input. */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ #include <stdio.h> #include <math.h> @@ -10443,7 +10369,6 @@ int main() */ /* WAP to accept diagonal of a square and calculate area, parimeter */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ #include <stdio.h> #include <math.h> @@ -10482,7 +10407,6 @@ int main() */ /* WAP to calculate and display radius of a circle by taking the area as input. */ -/* Author - Amit Dutta, Date - 18th SEP, 2025 */ #include <stdio.h> #include <math.h> @@ -10518,7 +10442,6 @@ int main() /* WAP a program that accept number of days as input and represent it as years, months and days. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() @@ -10556,7 +10479,6 @@ int main() */ /* WAP that accept seconds as input and represent it an hours, minutes and seconds. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() @@ -10601,7 +10523,6 @@ net salary generated by below formula. gross salary = basic salary + da + hra net salary = gross salary - pf */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() @@ -10642,7 +10563,6 @@ int main() /* WAP to multiply and divide a number by 4 without using multiplication and division operator. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() @@ -10679,7 +10599,6 @@ int main() */ /* WAP to swap two integer variable without using Third variable. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> int main() @@ -10717,7 +10636,6 @@ int main() (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) take a, b, c as input. */ -/* Author - Amit Dutta, Date - 19th SEP, 2025 */ #include <stdio.h> #include <math.h> @@ -10753,7 +10671,6 @@ int main() /* 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 */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ #include <stdio.h> #include <math.h> @@ -10800,7 +10717,6 @@ int main() */ /* Write a program to input three integer and find out second largest */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ #include <stdio.h> @@ -10841,7 +10757,6 @@ int main() /* 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 */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ #include <stdio.h> #include <math.h> @@ -10901,7 +10816,6 @@ the sum and number of days as input. 365 - 500 9.25 % > 500 9.15 % */ -/* Author - Amit Dutta, Date - 31st October, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -10950,7 +10864,6 @@ int main() /* Write a program to display all numbers between lb (lower bound) and up (upper bound) which ends with digit 7 or divisible by 7. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202501.c (LAB), APC-PRAC-015.c (Local) // This code has not been compiled. @@ -11004,7 +10917,6 @@ int main() */ /* Write a program to check palindrome number. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202502.c (LAB), APC-PRAC-016.c (Local) // This code has not been compiled. @@ -11052,7 +10964,6 @@ int main() */ /* Write a program to check perfect number. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202503.c (LAB), APC-PRAC-017.c (Local) // This code has not been compiled. @@ -11101,7 +11012,6 @@ int main() */ /* Write a program to check Automorphic Number. */ -/* Author - Amit Dutta, Date - 06th November, 2025 */ // File Name - amit0611202504.c (LAB), APC-PRAC-018.c (Local) // This code has not been compiled. @@ -11153,7 +11063,6 @@ int main() */ /* Write a program to find hcf of two numbers */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202501.c (LAB), APC-PRAC-019.c (Local) // This code has not been compiled. @@ -11199,7 +11108,6 @@ int main() */ /* Write a program to check if two number is co-prime or not */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202502.c (LAB), APC-PRAC-020.c (Local) // This code has not been compiled. @@ -11248,7 +11156,6 @@ int main() */ /* Write a program to check special number (sum of digit + product of digit = original number) */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202503.c (LAB), APC-PRAC-021.c (Local) // This code has not been compiled. @@ -11300,7 +11207,6 @@ int main() */ /* Write a program to accept a number and check whether the number is twisted prime or not */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202504.c (LAB), APC-PRAC-022.c (Local) // This code has not been compiled. @@ -11380,7 +11286,6 @@ int main() (a) 1, -3, 5, -7, 9, -11, ... upto n times (b) 0, 3, 8, 15, ... upto n times */ -/* Author - Amit Dutta, Date - 07th November, 2025 */ // File Name - amit0711202505.c (LAB), APC-PRAC-023.c (Local) // This code has not been compiled. @@ -12625,7 +12530,6 @@ int main() { */ /* Program to print first 10 natural numbers using while loop. */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation @@ -12672,7 +12576,6 @@ void main() */ /* Write to reverse a number. */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation @@ -12722,7 +12625,6 @@ void main() */ /* Write a program to print first 10 multiple of 5 */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation @@ -12769,7 +12671,6 @@ void main() */ /* Write a program the sum of first 10 natural numbers. */ -/* Author - Amit Dutta, Date - 29th October, 2025 */ /* * Compiler Note: This source code is specifically designed for compilation @@ -13536,7 +13437,6 @@ int main() { */ //sample code -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13566,7 +13466,6 @@ int main() { */ //sample code with a new line charecter -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13596,7 +13495,6 @@ int main() { */ //WAP to perform addtion and multiplication of two integer numbers -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13635,7 +13533,6 @@ int main() { /* WAP to find and display the value of given expression : ((x+3)/4) - ((2x+4)/3) taking the value of x = 5 */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13669,7 +13566,6 @@ int main() { /* 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. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13706,7 +13602,6 @@ int main() { /* The normal temperature of human body is 98.6 Degree Fahrenheit. WAP to convert the temperature to Degree Celcius and display the output. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13742,7 +13637,6 @@ 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. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13781,7 +13675,6 @@ 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. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13825,7 +13718,6 @@ IMP : DA = 30% of Basic Pay Gross Salary = Basic Pay + DA + HRA Net Salary = Gross Salary - PF */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13870,7 +13762,6 @@ Hint : si = (p * r * t) / 100 a = p * ((1 + (r / 100)) ^ t) ci = a - p */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> @@ -13915,7 +13806,6 @@ given by the formula : WAP to calculate T take length(L) and gravity as input */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> @@ -13953,7 +13843,6 @@ int main() { /* WAP to swap two integer variable without using third variable */ // using Approch Mode : simple, slow, time consuming -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -13990,7 +13879,6 @@ int main() { /* WAP to swap two integer variable without using third variable */ // using Approch Mode : complex, fast, less time consumimg -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> @@ -14028,7 +13916,6 @@ int main() { /* WAP to accept the diagonal of square. Find and display the area and perimeter of the square. */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> @@ -14068,7 +13955,6 @@ int main() { /*WAP to accept number of days and display it after converting into number of years, months and days */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> int main() { @@ -14107,7 +13993,6 @@ int main() { /* WAP to calculate and display radius of a circle by taking the area as input */ -// Author - Amit Dutta, Date - Unknown #include<stdio.h> #include<math.h> @@ -14142,7 +14027,6 @@ int main() { */ /* Find maximum between three number. */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() @@ -14182,7 +14066,6 @@ int main() /* WAP to input the cost price and selling price and calculate profit, profit percentage, loss percentage or display the manage nither profit nor loss. */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() @@ -14235,7 +14118,6 @@ the amount to be paid by the passanger. next 10KM RS 10/KM more than 25KM RS 9/KM */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() @@ -14283,7 +14165,6 @@ taking the sum and number of days as input. exact 365 days 9.0 % more than 365 days 8.5 % */ -// Author - Amit Dutta, Date - Unknown #include <stdio.h> int main() @@ -14326,7 +14207,6 @@ int main() /* WAP to input a positive number and check if it is a perfect square number or not. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -14368,7 +14248,6 @@ int main() */ /* WAP to find out smallest of three numbers without using if_else block. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -14406,7 +14285,6 @@ int main() /* WAP to input the total cost and compute the amount to be paid by the customer. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -14449,7 +14327,6 @@ int main() */ /* WAP to check whether a year is leapyear or not. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -14496,7 +14373,6 @@ bill amount according to the given condition : above 250 unit Rs. 1.50 per unit And additional charge of 20 percent is added to the bill. */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -14545,7 +14421,6 @@ the interest earned si = (p * r * t) / 100 compoundInterest = p * ((1 + r / 100)^t - 1) */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ #include <stdio.h> #include <math.h> @@ -14608,7 +14483,6 @@ int main() 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). */ -/* Author - Amit Dutta, Date - 8th OCT, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -14687,7 +14561,6 @@ int main() */ /* WAP to calculate factorial of a number */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> int main() @@ -14739,7 +14612,6 @@ int main() */ /* WAP to perform addition of first n natural numbers. sum = 1 + 2 + 3 + ... */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> int main() @@ -14788,7 +14660,6 @@ int main() */ /* Display the first 15 terms of the series. */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> #include <math.h> @@ -14869,7 +14740,6 @@ int main() */ /* Find the sum of the series */ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> #include <math.h> @@ -14932,7 +14802,6 @@ int main() /* 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*/ -/* Author - Amit Dutta, Date - 11th OCT, 2025 */ #include <stdio.h> int main() @@ -14974,7 +14843,6 @@ int main() */ /* WAP to calculate the sum of even digits and odd digits. Number will be provided by user. */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> int main() @@ -15019,7 +14887,6 @@ int main() /* Get sum of even position digit and odd position digit */ /* Counting starts from the rightmost digit as position 1 (Odd). */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> int main() @@ -15065,7 +14932,6 @@ int main() /* WAP to input an int number and display the product of the successors of even digits of the number entered by user. */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> #include <stdbool.h> @@ -15113,7 +14979,6 @@ int main() */ /* sum = a + (a^2)/2 + (a^3)/3 + ... + (a^n)/n */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> #include <math.h> @@ -15151,7 +15016,6 @@ int main() */ /* sum = 1 + 1+2/1*2 + 1+2+3/1*2*3 + ... + 1+2+3+...+n/1*2*3*...*n */ -/* Author - Amit Dutta, Date - 18th OCT, 2025 */ #include <stdio.h> @@ -15194,7 +15058,6 @@ int main() */ /* Write a program to check prime number */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> #include <math.h> @@ -15271,7 +15134,6 @@ int main() */ /* Write a program to print all the factors of a postive integer */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> @@ -15312,7 +15174,6 @@ int main() */ /* Write a program to calculate HCF of two positive number */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> int main() @@ -15353,7 +15214,6 @@ int main() /* Write a program to enter two numbers and check they are co-prime or not. co-prime when HCF = 1 */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> int main() @@ -15404,7 +15264,6 @@ int main() /* Write a program to accept a number and check whether the number is twisted prime or not. */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> #include <math.h> @@ -15479,7 +15338,6 @@ int main() */ /* Write a program to check palindrome number. */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ #include <stdio.h> int main() @@ -15533,7 +15391,6 @@ number is Pronic number or not. which is the product of two consecutive integer. Ex: 20 = 4 * 5 */ -/* Author - Amit Dutta, Date - 27th OCT, 2025 */ // using boolean... /* @@ -15633,7 +15490,6 @@ int main() 1 2 3 4 1 2 3 4 5 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> @@ -15681,7 +15537,6 @@ int main() 4 3 2 1 5 4 3 2 1 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> @@ -15729,7 +15584,6 @@ int main() 5 4 3 2 5 4 3 2 1 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> @@ -15778,7 +15632,6 @@ int main() 7 8 9 10 11 12 13 14 15 */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> @@ -15828,7 +15681,6 @@ int main() @ @ @ @ # # # # # */ -/* Author - Amit Dutta, Date - 01st NOVEMBER, 2025 */ #include <stdio.h> @@ -15876,7 +15728,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 08th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -15929,7 +15780,6 @@ int main() /* 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. */ -/* Author - Amit Dutta, Date - 08th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -15986,7 +15836,6 @@ int main() /* 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 */ -/* Author - Amit Dutta, Date - 09th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16034,7 +15883,6 @@ int main() /* 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) */ -/* Author - Amit Dutta, Date - 09th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16079,7 +15927,6 @@ int main() */ /* Print all pattern */ -/* Author - Amit Dutta, Date - 09th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16259,7 +16106,6 @@ int main() */ /* WAP to check Krishnamurty number using user defined methods/functions. */ -/* Author - Amit Dutta, Date - 15th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16322,7 +16168,6 @@ int main() */ /* WAP to print n terms of Fibbonacci Series (Starting from term 0) */ -/* Author - Amit Dutta, Date - 15th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16381,7 +16226,6 @@ int main() */ /* WAP to swap the value of a and b using user defined method. */ -/* Author - Amit Dutta, Date - 22th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16430,7 +16274,6 @@ int main() /* WAP to display the series using user defined method. 0, 7, 26, 63, ... upto n terms using void series(int n) */ -/* Author - Amit Dutta, Date - 22th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16476,7 +16319,6 @@ int main() */ /* WAP to display ASCII code of Alphabets (A - Z) using void displayASCII() */ -/* Author - Amit Dutta, Date - 22th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them. @@ -16523,9 +16365,8 @@ int main() /* 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); - voidd dispaly(int a[], int n); + void dispaly(int a[], int n); */ -/* Author - Amit Dutta, Date - 29th November, 2025 */ // This code has not been compiled. // If you find any issues, please create a new issue on GitHub regarding them.