bsc

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

commit 4196b3665c0e96f8d739b7b90afd2750d240f3d7
parent 4a50a0e69bd200b67aa455157524a9f3c4dca16d
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Wed,  3 Sep 2025 19:53:05 +0530

Delete practice-c directory
Diffstat:
Dpractice-c/codesnapshot/defprime.png | 0
Dpractice-c/codesnapshot/rev.png | 0
Dpractice-c/codesnapshot/s=1-2+3-4+5-6.png | 0
Dpractice-c/codesnapshot/sumofdigit.png | 0
Dpractice-c/defprime.c | 33---------------------------------
Dpractice-c/defprime.exe | 0
Dpractice-c/rev.c | 25-------------------------
Dpractice-c/rev.exe | 0
Dpractice-c/s=1-2+3-4+5-6....c | 26--------------------------
Dpractice-c/s=1-2+3-4+5-6....exe | 0
Dpractice-c/sumofdigit.c | 18------------------
Dpractice-c/sumofdigit.exe | 0
12 files changed, 0 insertions(+), 102 deletions(-)

diff --git a/practice-c/codesnapshot/defprime.png b/practice-c/codesnapshot/defprime.png Binary files differ. diff --git a/practice-c/codesnapshot/rev.png b/practice-c/codesnapshot/rev.png Binary files differ. diff --git a/practice-c/codesnapshot/s=1-2+3-4+5-6.png b/practice-c/codesnapshot/s=1-2+3-4+5-6.png Binary files differ. diff --git a/practice-c/codesnapshot/sumofdigit.png b/practice-c/codesnapshot/sumofdigit.png Binary files differ. diff --git a/practice-c/defprime.c b/practice-c/defprime.c @@ -1,33 +0,0 @@ -/*Write a function to find whether a given no. is prime or not. -Use the same to generate the prime numbers less than 100.*/ - -#include<stdio.h> - -int isPrime(int inp) { - int i, is_prime = 1; - - if (inp < 2) is_prime = 0; - - for (i = 2; i <= inp / 2; i++) if (inp % i == 0) { - is_prime = 0; - break; - } - - return is_prime; -} - - -int main() { - int inp, i; - printf("Enter the number you want to check : "); - scanf("%d",&inp); - printf("\n"); - - if (isPrime(inp)) printf("\nGiven input '%d' is a Prime Number.",inp); - else printf("\nGiven input '%d' is not a Prime Number.",inp); - - printf ("\nSeris of prime number below : "); - for (i = 2; i < 100; i++) if (isPrime(i)) printf(" %d",i); - - return 0; -} diff --git a/practice-c/defprime.exe b/practice-c/defprime.exe Binary files differ. diff --git a/practice-c/rev.c b/practice-c/rev.c @@ -1,25 +0,0 @@ -//WAP to reverse a non-negative integer. - -#include<stdio.h> - -int main() { - int inp, result = 0, temp; - printf("PLease enter the number you want to reverse : "); - scanf("%d",&inp); - printf("\n"); - - if (inp < 0) { - printf("\nPlease enter a non negetive integer."); - return 0; - } - - temp = inp; - while ( temp != 0) { - result = (result * 10) + (temp % 10); - temp = temp / 10; - } - - printf("\nReverse of the input '%d' is : %d", inp, result); - return 0; -} - diff --git a/practice-c/rev.exe b/practice-c/rev.exe Binary files differ. diff --git a/practice-c/s=1-2+3-4+5-6....c b/practice-c/s=1-2+3-4+5-6....c @@ -1,26 +0,0 @@ -//WAP to compute the sum of the first n terms of the following series,S =1-2+3- 4+5………… - -#include<stdio.h> - -int main() { - int n, result = 0, temp, i; - printf("Please enter the value for 'n' for this series 's = 1-2+3-4+5-....': "); - scanf("%d",&n); - printf("\n"); - - if (n <= 0) { - printf("\nPlease enter a positive integer."); - return 0; - } - - for (i = 1; i<= n; i++) { - if (i % 2 == 0) { - result = result - i; - } - else { - result = result + i; - } - } - - printf("\nAns : %d", result); -} diff --git a/practice-c/s=1-2+3-4+5-6....exe b/practice-c/s=1-2+3-4+5-6....exe Binary files differ. diff --git a/practice-c/sumofdigit.c b/practice-c/sumofdigit.c @@ -1,18 +0,0 @@ -#include<stdio.h> -#include<conio.h> - -int main() { - int input_count, inp, result = 0, i; - printf("Please enter how many number you want to add : "); - scanf("%d",&input_count); - printf("\n"); - - for (i = 1; i <= input_count; i++) { - printf("Please enter the number %d : ",i); - scanf("%d",&inp); - result = result + inp; - } - - printf("\nResult : %d",result); - return 0; -} diff --git a/practice-c/sumofdigit.exe b/practice-c/sumofdigit.exe Binary files differ.
© 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