Skip to content

Latest commit

 

History

History

pset1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

You can check the problem sets here

Hello

Say hello to the user

What's your name? 
Tiago
hello, Tiago

Mario

Recreate Mario's pyramid, using hastags (#), with height ranging from 1 to 8

pyramid

Less Version

Height: 4
   #  
  ##  
 ###  
####

More Version

Height: 4
   #  #
  ##  ##
 ###  ###
####  ####

Cash

Say how many coins are needed for change, between 25¢, 10¢, 5¢ and 1¢

Change owed: 0.62
5

Credit

Checks if the card is valid, according to Luhn's algorithm, and if it is AMEX, MASTERCARD or VISA

Number: 378282246310005
AMEX