bsc

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

commit c6c17a175d9b3bc479153c37cb15bb71d5fdd344
parent a9e56edcb1ce74275b6061a838a854d2745377d7
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Sun, 14 Sep 2025 20:17:55 +0530

Delete tution-c directory
Diffstat:
Dtution-c/APC-SPS-1.c | 21---------------------
Dtution-c/APC-SPS-2.c | 13-------------
Dtution-c/P01.c | 7-------
Dtution-c/P02.c | 7-------
Dtution-c/P03.c | 15---------------
Dtution-c/P04.c | 10----------
Dtution-c/P05.c | 14--------------
Dtution-c/P06.c | 11-----------
Dtution-c/P07.c | 16----------------
Dtution-c/P08.c | 18------------------
Dtution-c/P09.c | 23-----------------------
Dtution-c/P10.c | 23-----------------------
Dtution-c/P11.c | 18------------------
Dtution-c/P12.c | 14--------------
Dtution-c/P13.c | 15---------------
Dtution-c/P14.c | 17-----------------
Dtution-c/P15.c | 17-----------------
Dtution-c/P16.c | 13-------------
18 files changed, 0 insertions(+), 272 deletions(-)

diff --git a/tution-c/APC-SPS-1.c b/tution-c/APC-SPS-1.c @@ -1,21 +0,0 @@ -// WAP to perform arithmatic operation on integer data - -#include<stdio.h> -int main() { - int a, b, sum, sub, multi, div, mod; - printf("Enter 1st number : "); - scanf("%d", &a); - printf("Enter 2nd number : "); - scanf("%d", &b); - sum = a + b; - sub = a - b; - multi = a * b; - div = a / b; - mod = a % b; - printf("\nSum = %d", sum); - printf("\nSubtraction = %d", sub); - printf("\nMultiplication = %d", multi); - printf("\nDivision = %d", div); - printf("\nModulas = %d", div); - return 0; -} diff --git a/tution-c/APC-SPS-2.c b/tution-c/APC-SPS-2.c @@ -1,13 +0,0 @@ -/* WAP to swap two integers. Display both numbers -before and after swap */ - -#include<stdio.h> -int main() { - int a = 10, b = 20, temp; - printf("Before swap A : %d, B : %d", a, b); - temp = a; - a = b; - b = temp; - printf("\nAfter swap A : %d, B : %d", a, b); - return 0; -} diff --git a/tution-c/P01.c b/tution-c/P01.c @@ -1,7 +0,0 @@ -//sample code - -#include<stdio.h> -int main() { - printf("Hello world"); - return 0; -} diff --git a/tution-c/P02.c b/tution-c/P02.c @@ -1,7 +0,0 @@ -//sample code with a new line charecter - -#include<stdio.h> -int main() { - printf("Hello\nworld"); - return 0; -} diff --git a/tution-c/P03.c b/tution-c/P03.c @@ -1,15 +0,0 @@ -//WAP to perform addtion and multiplication of two integer numbers - -#include<stdio.h> -int main() { - int a, b, sum, multi; - printf("Enter the 1st number : "); - scanf("%d",&a); - printf("Enter the 2nd number : "); - scanf("%d",&b); - sum = a + b; - multi = a * b; - printf("\nSum = %d" - "\nMultiplication = %d",sum,multi); - return 0; -} diff --git a/tution-c/P04.c b/tution-c/P04.c @@ -1,10 +0,0 @@ -/* WAP to find and display the value of given expression : -((x+3)/4) - ((2x+4)/3) taking the value of x = 5 */ - -#include<stdio.h> -int main() { - double x =5, result; - result = ((x + 3) / 4) - ((2 * x + 4) / 3); - printf("Result = %lf",result); - return 0; -} diff --git a/tution-c/P05.c b/tution-c/P05.c @@ -1,14 +0,0 @@ -/* 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. */ - -#include<stdio.h> -int main() { - int daily_wage = 455, fine = 150, present, absent, income; - printf("No of days present : "); - scanf("%d", &present); - absent = 30 - present; - income = (present * 455) - (absent * 150); - printf("\nIncome : %d",income); - return 0; -} diff --git a/tution-c/P06.c b/tution-c/P06.c @@ -1,11 +0,0 @@ -/* The normal temperature of human body -is 98.6 Degree Fahrenheit. WAP to convert the temperature -to Degree Celcius and display the output. */ - -#include<stdio.h> -int main() { - double f = 98.6, c; - c = ((f - 32) * 5) / 9; - printf("Temperature in Celcius is : %lf",c); - return 0; -} diff --git a/tution-c/P07.c b/tution-c/P07.c @@ -1,16 +0,0 @@ -/* A shopkeeper offers 10% discount on printed -price of a digital camera. However a customer has -to pay 6% GST on the remaining amount. WAP to -calculate and display the amount to paid by the -customer, taking the printed price as input. */ - -#include<stdio.h> -int main() { - double mrp, final_price, temp; - printf("Enter the printed price : "); - scanf("%lf", &mrp); - temp = mrp * 0.90; - final_price = temp * 1.06; - printf("\nCustomer have to pay : %lf", final_price); - return 0; -} diff --git a/tution-c/P08.c b/tution-c/P08.c @@ -1,18 +0,0 @@ -/* A shopkeeper offers 30% discount on purchasing an -item whereas the other shopkeeper offers 2 successive -discount of 20% and 10% for purchasing the same item. -WAP to caompute and display the discounted price of the -item by taking the price as input. */ - -#include<stdio.h> -int main() { - double mrp, shop1, shop2, temp; - printf("Enter the price : "); - scanf("%lf", &mrp); - shop1 = mrp * 0.70; - temp = mrp * 0.80; - shop2 = temp * 0.90; - printf("\nShopkeeper 1 price : %lf" - "\nShopkeeper 2 price : %lf",shop1,shop2); - return 0; -} diff --git a/tution-c/P09.c b/tution-c/P09.c @@ -1,23 +0,0 @@ -/* WAP to calculate gross and net salary -by accepting basic salary as input. -IMP : DA = 30% of Basic Pay - HRA = 20% of Basic Pay - PF = 12.5% of Basic Pay - Gross Salary = Basic Pay + DA + HRA - Net Salary = Gross Salary - PF -*/ - -#include<stdio.h> -int main() { - double bs, da, hra, pf, gs, ns; - printf("Enter the Basic Salary : "); - scanf("%lf", &bs); - da = bs * 0.3; - hra = bs * 0.2; - pf = bs * 0.125; - gs = bs + da + hra; - ns = gs - pf; - printf("\nGross Salary : %lf" - "\nNet Salary : %lf", gs, ns); - return 0; -} diff --git a/tution-c/P10.c b/tution-c/P10.c @@ -1,23 +0,0 @@ -/* WAP to find and display the difference -between compound Interest and Simple Interest. -Take principle amount as input. -Hint : si = (p * r * t) / 100 - a = p * ((1 + (r / 100)) ^ t) - ci = a - p -*/ - -#include<stdio.h> -#include<math.h> -int main() { - double p, r, t, si, a, ci, dif; - printf("Enter the principle amount, rate of interest, time in year : "); - scanf("%lf %lf %lf", &p, &r, &t); - si = (p * r * t) / 100; - a = p * pow((1 + (r / 100)), t); - ci = a - p; - dif = ci - si; - printf("\nSimple Interest : %lf" - "\nCompound Interest : %lf" - "\nInterest Difference : %lf", si, ci, dif); - return 0; -} diff --git a/tution-c/P11.c b/tution-c/P11.c @@ -1,18 +0,0 @@ -/* The time period of a simple pendulam is -given by the formula : - t = 2 * pi * square_root(l / g) -WAP to calculate T take length(L) and gravity -as input -*/ - -#include<stdio.h> -#include<math.h> -int main() { - double l, g, t; - printf("Enter the Length and Gravity measures : "); - scanf("%lf %lf", &l, &g); - t = 2 * M_PI * sqrt(l / g); - // using M_PI variable for PI value from math.h header file - printf("\nTime Period : %lf", t); - return 0; -} diff --git a/tution-c/P12.c b/tution-c/P12.c @@ -1,14 +0,0 @@ -/* WAP to swap two integer variable without -using third variable */ -// using Approch Mode : simple, slow, time consuming - -#include<stdio.h> -int main() { - int a = 4, b = 6; - printf("Before Swap : A = %d, B = %d", a, b); - a = a + b; - b = a - b; - a = a - b; - printf("\nAfter Swap : A = %d, B = %d", a, b); - return 0; -} diff --git a/tution-c/P13.c b/tution-c/P13.c @@ -1,15 +0,0 @@ -/* WAP to swap two integer variable without -using third variable */ -// using Approch Mode : complex, fast, less time consumimg - -#include<stdio.h> -#include<math.h> -int main() { - int a = 4, b = 6; - printf("Before Swap : A = %d, B = %d", a, b); - a = a ^ b; - b = a ^ b; - a = a ^ b; - printf("\nAfter Swap : A = %d, B = %d", a, b); - return 0; -} diff --git a/tution-c/P14.c b/tution-c/P14.c @@ -1,17 +0,0 @@ -/* WAP to accept the diagonal of -square. Find and display the area and -perimeter of the square. */ - -#include<stdio.h> -#include<math.h> -int main() { - double d, side, area, per; - printf("Enter the diagonal : "); - scanf("%lf", &d); - side = d / sqrt (2); - area = side * side; - per = 4 * side; - printf("\nArea of the Square : %lf" - "\nPerimeter of the Square : %lf", area, per); - return 0; -} diff --git a/tution-c/P15.c b/tution-c/P15.c @@ -1,17 +0,0 @@ -/*WAP to accept number of days and -display it after converting into -number of years, months and days */ - -#include<stdio.h> -int main() { - int day, month, year, temp; - printf("Enter the number of days : "); - scanf("%d", &day); - temp = day; - year = day / 365; - day = day % 365; - month = day / 30; - day = day % 30; - printf("\n%d Days = %d Years %d Months %d Days", temp, year, month, day); - return 0; -} diff --git a/tution-c/P16.c b/tution-c/P16.c @@ -1,13 +0,0 @@ -/* WAP to calculate and display radius of a -circle by taking the area as input */ - -#include<stdio.h> -#include<math.h> -int main() { - double area, r; - printf("Enter the area of a circle : "); - scanf("%lf", &area); - r = sqrt((7 * area) / 22); - printf("\nRadius : %lf", r); - return 0; -}
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror