Skip to content

Commit

Permalink
dailycodebase (#86)
Browse files Browse the repository at this point in the history
* Add @divyakhetan as a contributor

* added day1 code
  • Loading branch information
divyakhetan authored and MadhavBahl committed Dec 30, 2018
1 parent cd7dceb commit ad287d2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .all-contributorsrc
Expand Up @@ -172,6 +172,16 @@
"doc",
"code"
]
},
{
"login": "divyakhetan",
"name": "divyakhetan",
"avatar_url": "https://avatars1.githubusercontent.com/u/26656036?v=4",
"profile": "https://github.com/divyakhetan",
"contributions": [
"doc",
"code"
]
}
]
}
4 changes: 2 additions & 2 deletions CONTRIBUTORS.md
@@ -1,4 +1,4 @@
[![All Contributors](https://img.shields.io/badge/all_contributors-16-orange.svg?style=flat-square)](#contributors)
[![All Contributors](https://img.shields.io/badge/all_contributors-17-orange.svg?style=flat-square)](#contributors)

## Contributors

Expand All @@ -9,7 +9,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
| [<img src="https://avatars2.githubusercontent.com/u/26179770?v=4" width="100px;"/><br /><sub><b>MADHAV BAHL</b></sub>](http://madhavbahl.tech/)<br />[πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=MadhavBahlMD "Code") [πŸ“](#blog-MadhavBahlMD "Blogposts") [πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=MadhavBahlMD "Documentation") [🎨](#design-MadhavBahlMD "Design") [βœ…](#tutorial-MadhavBahlMD "Tutorials") | [<img src="https://avatars2.githubusercontent.com/u/32531173?v=4" width="100px;"/><br /><sub><b>Rajdeep Roy Chowdhury</b></sub>](http://www.linkedin.com/in/razdeeproychowdhury)<br />[πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=Razdeep "Code") [πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=Razdeep "Documentation") [βœ…](#tutorial-Razdeep "Tutorials") | [<img src="https://avatars1.githubusercontent.com/u/16208722?v=4" width="100px;"/><br /><sub><b>Hrishi</b></sub>](https://hrishi1999.github.io)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=Hrishi1999 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=Hrishi1999 "Code") | [<img src="https://avatars1.githubusercontent.com/u/33101287?v=4" width="100px;"/><br /><sub><b>Bhanu Ailani</b></sub>](https://github.com/Bhanu0202)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=Bhanu0202 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=Bhanu0202 "Code") | [<img src="https://avatars3.githubusercontent.com/u/35690440?v=4" width="100px;"/><br /><sub><b>Deepak Sharma</b></sub>](https://sourcerer.io/dsdsharma)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=dsdsharma "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=dsdsharma "Code") | [<img src="https://avatars2.githubusercontent.com/u/28749866?v=4" width="100px;"/><br /><sub><b>Ramanpreet Singh</b></sub>](https://github.com/Ramanpreet6262)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=Ramanpreet6262 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=Ramanpreet6262 "Code") | [<img src="https://avatars1.githubusercontent.com/u/27620628?v=4" width="100px;"/><br /><sub><b>Anil Khatri</b></sub>](https://imkaka.github.io/)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=imkaka "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=imkaka "Code") |
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars0.githubusercontent.com/u/39827514?v=4" width="100px;"/><br /><sub><b>Ashwek Swamy</b></sub>](https://github.com/ashwek)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=ashwek "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=ashwek "Code") | [<img src="https://avatars1.githubusercontent.com/u/32368107?v=4" width="100px;"/><br /><sub><b>Dhruv Gupta</b></sub>](https://github.com/dhruv-gupta14)<br />[πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=dhruv-gupta14 "Code") | [<img src="https://avatars0.githubusercontent.com/u/30969577?v=4" width="100px;"/><br /><sub><b>Aadit Kamat</b></sub>](https://sg.linkedin.com/in/aadit-kamat-12a5a8140)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=aaditkamat "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=aaditkamat "Code") | [<img src="https://avatars1.githubusercontent.com/u/20285786?v=4" width="100px;"/><br /><sub><b>Shashank jain</b></sub>](http://www.myshashank.tech)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=Shashankjain12 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=Shashankjain12 "Code") | [<img src="https://avatars3.githubusercontent.com/u/22260031?v=4" width="100px;"/><br /><sub><b>Moulik Aggarwal</b></sub>](https://github.com/moulikcipherX)<br />[πŸ’¬](#question-moulikcipherX "Answering Questions") [πŸ“](#blog-moulikcipherX "Blogposts") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=moulikcipherX "Code") [πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=moulikcipherX "Documentation") | [<img src="https://avatars3.githubusercontent.com/u/21277179?v=4" width="100px;"/><br /><sub><b>Prateek Surana</b></sub>](http://prateeksurana.me)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=prateek3255 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=prateek3255 "Code") | [<img src="https://avatars2.githubusercontent.com/u/43927436?v=4" width="100px;"/><br /><sub><b>shivank86</b></sub>](https://github.com/shivank86)<br />[πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=shivank86 "Code") |
| [<img src="https://avatars2.githubusercontent.com/u/25405726?v=4" width="100px;"/><br /><sub><b>Vishal Shirke</b></sub>](https://github.com/vishalshirke7)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Code") | [<img src="https://avatars1.githubusercontent.com/u/25369498?v=4" width="100px;"/><br /><sub><b>profgrammer</b></sub>](https://github.com/profgrammer)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=profgrammer "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=profgrammer "Code") |
| [<img src="https://avatars2.githubusercontent.com/u/25405726?v=4" width="100px;"/><br /><sub><b>Vishal Shirke</b></sub>](https://github.com/vishalshirke7)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=vishalshirke7 "Code") | [<img src="https://avatars1.githubusercontent.com/u/25369498?v=4" width="100px;"/><br /><sub><b>profgrammer</b></sub>](https://github.com/profgrammer)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=profgrammer "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=profgrammer "Code") | [<img src="https://avatars1.githubusercontent.com/u/26656036?v=4" width="100px;"/><br /><sub><b>divyakhetan</b></sub>](https://github.com/divyakhetan)<br />[πŸ“–](https://github.com/CodeToExpress/dailycodebase/commits?author=divyakhetan "Documentation") [πŸ’»](https://github.com/CodeToExpress/dailycodebase/commits?author=divyakhetan "Code") |
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
20 changes: 20 additions & 0 deletions Day1/C++/fizzbuzzday1.cpp
@@ -0,0 +1,20 @@
/**
* @author divyakhetan
* @date 30/12/2018
*/

#include<bits/stdc++.h>
using namespace std;

int main(){
cout << "Enter a number ";
int n;
cin >> n;
for(int i = 1; i <= n; i++){
if((i % 3 == 0) && (i % 5 == 0)) cout << "FizzBuzz ";
else if(i % 3 == 0) cout << "Fizz ";
else if(i % 5 == 0) cout << "Buzz ";
else cout << i << " ";
}
return 0;
}

0 comments on commit ad287d2

Please sign in to comment.