C++(functions)
Python:
def distance(velocity, time)
return velocity*time, time
distance(5,4)
distance(11.1,12.1)
Python can have multiple outputs, but C++ can only have one.
C++
#include<iostream>
//function declaration:create a function named distance.
//ret...
dragonquest.hashnode.dev1 min read