c icon indicating copy to clipboard operation
c copied to clipboard

Creating a library out of this project

Open abranhe opened this issue 4 years ago • 2 comments

Thanks for anyone contributing to this project. It's been a huge the amount of work, and many, many algorithms over the pass year. I would like to start converting the All ▲lgorithms Project to a library to make it more useful and even more reusable.

We could have all the algorithms inside an /algorithms folder and keep start creating an evaluating the algorithm on the library from those algorithms already implemented. I know its a huge work but we can accomplish it together.

We will use clib a package manager for C developers. I will be more flexible on pull request right now to let people contribute on the project, and also remove some outgoing PRs, but eventually they will be as mentioned earlier on the /algorithms folder.

So have an amazing 2020 folks!

abranhe avatar Jan 06 '20 14:01 abranhe

@abranhe sir, I am happy to help.

hypnotizedhero-git avatar Jan 28 '21 06:01 hypnotizedhero-git

I have to write a program to print two Salaries one as the basic and the other with bonus according to the days if he had worked for days above 25 he'll get bonus other wise he'll not and the one who get bonus will get 1000 per day for each day starting from 25 to the day till 31 like if he came 26 days he'll get 1000 bonus and if 27 he'll get 2000 and so on till 31 The user will input the basic salary and the days which he worked

#include<stdio.h> int main() { int salary , bonus , days, extra=0; printf("Enter the Salary of the employee:\n"); scanf("%d",&salary); printf("Enter the days employee worked:\n"); scanf("%d",&days); while(days>32){ printf("Invalid Input! Please Enter a valid Input.\nEnter the days employee worked:"); scanf("%d",&days); } if(days>25){ extra=days -25; bonus=(extra*1000)+salary; printf("Basic Salary:%d\nSalary(with bonus):%d",salary,bonus); }else{ printf("Basic Salary:%d",salary); } }

whoisyashu avatar Dec 01 '23 02:12 whoisyashu