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
### BASH script to download the entire CS50 course material + project instructions | |
###DEFINE ALL OF THESE VARIABLES | |
root="http://cdn.cs50.net/mobile/2018/spring" #remove the final / in the link | |
quality=720p #imporant to retain the `p` | |
lec_count=12 #check in root on your browser | |
proj_count=2 #check in root on your browser | |
#UNCOMMENT THE NEXT LINE DOWNLOAD PROJECT INSTRUCTIONS |
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> | |
void sayhello(){ | |
printf("Hello World"); | |
} | |
int main(){ | |
int num; | |
char* number; | |
do{ | |
printf("\njust say some number: "); |
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
###GLOBAL SECTION### | |
current_year = 2020 | |
###FUNCTION DEF### | |
def age_finder(parameter): #get the parameter from function call (ln.16) and save in *parameter* | |
dob = parameter.split("/") | |
yob = int(dob[2]) | |
result = current_year - yob #calculate result | |
return result #return *result* to funciton call (ln.14) | |
####MAIN### | |
name = "Epoch" #create var called name |
NewerOlder