Skip to content

Instantly share code, notes, and snippets.

View SametSahin10's full-sized avatar
🏠
Working from home

SametSahin10

🏠
Working from home
View GitHub Profile
@SametSahin10
SametSahin10 / solution.py
Last active December 2, 2018 22:17
My Solution
points = 400 # use this as input for your submission
# establish the default prize value to None
prize = None
# use the points value to assign prizes to the correct prize names
if points <= 50:
prize = "wooden rabbit"
while True:
print("Options:")
print("Enter 'add' to add two numbers")
print("Enter 'subtract' to subtract two numbers")
print("Enter 'multiply' to multiply two numbers")
print("Enter 'divide' to divide two numbers")
print("Enter 'quit' to end the program")
user_input = input(": ")
#include <stdio.h>
#include <stdlib.h>
int main() {
int n;
printf("Enter the number of x and y values: \n");
scanf("%d", &n);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main() {
char name[50];
int numberOfElementsOfArray;
@SametSahin10
SametSahin10 / printNumbers.c
Created March 13, 2018 12:59
C program to print all the numbers in a char array.
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
int main() {
char sentence[100];
int numberOfNumbers = 0;