bsc

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

commit bf030509f168fb8d211ab4f5819b1e4a7889b165
parent 846e150a7dbbd09304064113106ebc0de1c2d383
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Tue, 23 Sep 2025 14:08:59 +0530

Add files via upload
Diffstat:
Mtution-c/APC-PRAC-008.c | 20++++++++++++++++++--
Mtution-c/APC-PRAC-009.c | 17+++++++++++++++--
Mtution-c/APC-PRAC-010.c | 22++++++++++++++++++----
3 files changed, 51 insertions(+), 8 deletions(-)

diff --git a/tution-c/APC-PRAC-008.c b/tution-c/APC-PRAC-008.c @@ -1 +1,17 @@ -/* WAP to multiply and divide a number by 4 without using multiplication and division operator. */- \ No newline at end of file +/* 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() +{ + int num, multi, div; + printf("Enter the number : "); + scanf("%d", &num); + multi = num << 2; + div = num >> 2; + printf("Multiplication : %d" + "\nDivision : %d", + multi, div); + return 0; +}+ \ No newline at end of file diff --git a/tution-c/APC-PRAC-009.c b/tution-c/APC-PRAC-009.c @@ -1 +1,14 @@ -/* WAP to swap two integer variable without using Third variable. */- \ No newline at end of file +/* WAP to swap two integer variable without using Third variable. */ +/* Author - Amit Dutta, Date - 19th SEP, 2025 */ + +#include <stdio.h> +int main() +{ + int a = 4, b = 6; + printf("Before swap : A = %d and B = %d", a, b); + a = a ^ b; + b = a ^ b; + a = a ^ b; + printf("\nAfter swap : A = %d and B = %d", a, b); + return 0; +}+ \ No newline at end of file diff --git a/tution-c/APC-PRAC-010.c b/tution-c/APC-PRAC-010.c @@ -1,3 +1,17 @@ -/* WAP to calculate and display the valve of the given expression : - (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) - take a, b, c as input. */- \ No newline at end of file +/* WAP to calculate and display the valve of the given expression : + (1/a^3) + (1/(b+2)^3) + (1/(c^4 + root(2))) + take a, b, c as input. +*/ +/* Author - Amit Dutta, Date - 19th SEP, 2025 */ + +#include <stdio.h> +#include <math.h> +int main() +{ + double a, b, c, result; + printf("Enter the value for a, b and c : "); + scanf("%lf %lf %lf", &a, &b, &c); + result = (1 / pow(a, 3)) + (1 / pow((b + 2), 3)) + (1 / (pow(c, 4) + sqrt(2))); + printf("\nResult = %g", result); + return 0; +}+ \ No newline at end of file
© 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