This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(": ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main() { | |
int n; | |
printf("Enter the number of x and y values: \n"); | |
scanf("%d", &n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main() { | |
char name[50]; | |
int numberOfElementsOfArray; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
int main() { | |
char sentence[100]; | |
int numberOfNumbers = 0; |
NewerOlder