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
/* CS50 Mario. This will work on any online compiler. You may need to make a few changes to get credit from Harvard. | |
Feel free to hmu if you have any questions at s.velaga@uky.edu */ | |
#include <stdio.h> | |
int main() | |
{ | |
int a, b, c; | |
for (a=1;a<=8;a++) |
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
/* CS50 solution. Feel free to check with any online compiler. To get credit from Harvard you may have to make a few changes. | |
hmu at s.velaga@uky.edu if you have any questions. */ | |
#include <stdio.h> | |
int main( ) | |
{ | |
int h; |
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
/* CS50 solution. Feel free to check with any online compiler. To get credit from Harvard you may have to make a few changes. | |
hmu at s.velaga@uky.edu if you have any questions. */ | |
#include <stdio.h> | |
int main() | |
{ | |
int c; | |
int numQ=0, numD=0, numN=0, numP=0, numcoins=0; |
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
/* CS50 solution. Feel free to check with any online compiler. To get credit from Harvard you may have to make a few changes. | |
hmu at s.velaga@uky.edu if you have any questions. Also I haven't learned about proper code style and formatting - | |
if you wanna hmu to tell me this looks like shit and how to make it look better pls do */ | |
#include <stdio.h> | |
#include <inttypes.h> | |
int main () | |
{ |
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
/* CS50 solution. Feel free to check with any online compiler. To get credit from Harvard you may have to make a few changes. | |
hmu at s.velaga@uky.edu if you have any questions. Also I haven't learned about proper code style and formatting - | |
if you wanna hmu to tell me this looks like shit and how to make it look better pls do */ | |
#include <stdio.h> //includes fget and stdin // | |
#include <ctype.h> | |
#include <stdlib.h> | |
#include <string.h> //used for strlen // | |
int main() |
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
/* CS50 solution. Feel free to check with any online compiler. To get credit from Harvard you may have to make a few changes. | |
hmu at s.velaga@uky.edu if you have any questions. Also I haven't learned about proper code style and formatting - | |
if you wanna hmu to tell me this looks like shit and how to make it look better pls do */ | |
#include <stdio.h> //includes fget and stdin // | |
#include <ctype.h> // used for isupper, islower, toupper, tolower | |
#include <stdlib.h> | |
#include <string.h> //used for strlen | |
int main() |
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
/* This is for Harvard's CS50. Try the code out - it should get the job done. If you have any questiond or wanna tell me | |
that my style looks like shit feel free to hmu at s.velaga@uky.edu */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "bmp.h" | |
int main(int argc, char* argv[]) | |
{ |
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
from cs50 import cs50 | |
y=cs50.get_int("Enter a number between 0 and 23: ") | |
while y > 23 or y < 0: | |
y=cs50.get_int("Bruhh, try again! Gotta be between 0 and 23: ") | |
if y <= 23 and y >= 0: | |
for x in range (0,y): | |
print(" " *(y-x), end="") |
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
from cs50 import cs50 | |
while True: | |
change = cs50.get_float("How much change do you need: ") | |
if change < 100 and change > 0: | |
break | |
numQ, numD, numN, numP = [0,0,0,0] | |
while change >= 25: |
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
from cs50 import cs50 | |
alphabet = "abcdefghijklmnopqrstuvwxyz" | |
alphabetcap = alphabet.upper() | |
cyphertext = "" | |
word = input("Please enter in a word to be encrypted: ") | |
key = int(input("Please enter a numnber to use as the encryption key: ")) |
OlderNewer