Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Division #73

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
33 changes: 33 additions & 0 deletions C++/Functions.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <iostream>
#include <cstdio>
using namespace std;

/*
Add `int max_of_four(int a, int b, int c, int d)` here.
*/

int max_of_four(int a, int b, int c, int d){
int max = 0;
if (a > max) {
max = a;
}
if (b > max) {
max = b;
}
if (c > max) {
max = c;
}
if (d > max) {
max = d;
}
return max;
}

int main() {
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
int ans = max_of_four(a, b, c, d);
printf("%d", ans);

return 0;
}
7 changes: 5 additions & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
#### Name: [ILYAS AHMED](https://github.com/ilyas123ahmed)

- Place: Islamabad, Pakistan
- Bio: GDSC MEMBER, Internee at Bytewise Limited
- GitHub: [ilyas123ahmed](https://github.com/ilyas123ahmed)

#### Name: [Muhammad Shakeel](https://github.com/shakeel0581)
- Place: Faisalabad, Pakistan
- Bio: Full Stack Software Engineer | NERN Stack | React Native | JavaScript/TypeScript | Cloud Evangelist | AWS Serveless Development & Deploymen
- GitHub: [shakeel0581](https://github.com/shakeel0581)
6 changes: 6 additions & 0 deletions Python/Division.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if __name__ == '__main__':
a = int(input())
b = int(input())

print(a//b);
print(a/b);
15 changes: 15 additions & 0 deletions Python/print_full_name.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#
# Complete the 'print_full_name' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING first
# 2. STRING last
#

def print_full_name(first, last):
print("Hello " + first + " " + last + "! You just delved into python.")
if __name__ == '__main__':
first_name = input()
last_name = input()
print_full_name(first_name, last_name)
32 changes: 32 additions & 0 deletions Python/quizGame.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
print('Welcome to AskPython Quiz')
answer=input('Are you ready to play the Quiz ? (yes/no) :')
score=0
total_questions=3

if answer.lower()=='yes':
answer=input('Question 1: What is your Favourite programming language?')
if answer.lower()=='python':
score += 1
print('correct')
else:
print('Wrong Answer :(')


answer=input('Question 2: Do you follow any author on AskPython? ')
if answer.lower()=='yes':
score += 1
print('correct')
else:
print('Wrong Answer :(')

answer=input('Question 3: What is the name of your favourite website for learning Python?')
if answer.lower()=='askpython':
score += 1
print('correct')
else:
print('Wrong Answer :(')

print('Thankyou for Playing this small quiz game, you attempted',score,"questions correctly!")
mark=(score/total_questions)*100
print('Marks obtained:',mark)
print('BYE!')
18 changes: 18 additions & 0 deletions profiles/shakeel0581.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Muhammad Shakeel

### Location:
Faisalabad, Pakistan

### Academics:
Master in Computer Science.

### Skills:
- MERN Stack
- React-native
- JavaScript/TypeScript
- Cloude (AWS)
- AWS Serverless Development & Deployment
- HTML/CSS

### Profile
- [AbubakarSattar-dev](https://github.com/AbubakarSattar-dev)