AllAlgorithms / c

Implementation of All ▲lgorithms in C Programming Language
https://github.com/AllAlgorithms/c
MIT License
1.51k stars 520 forks source link

Creating a library out of this project #145

Open abranhe opened 4 years ago

abranhe commented 4 years ago

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!

hypnotizedhero-git commented 3 years ago

@abranhe sir, I am happy to help.

whoisyashu commented 9 months ago

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

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); } }