Skip to content

Instantly share code, notes, and snippets.

@DeclanGas
Created June 23, 2022 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeclanGas/3a9cec8a7e0ec819a8e7db4ace9f4680 to your computer and use it in GitHub Desktop.
Save DeclanGas/3a9cec8a7e0ec819a8e7db4ace9f4680 to your computer and use it in GitHub Desktop.
#include<stdio.h>
#include<cs50.h>
#include "multiplication.h"
int main(void)
{
//To Do: Write a function to prompt the user for numberA and numberB
int A = get_int(":");
int B = get_int(":");
//To Do: Write a function to return the product of numberA and numberB. "The product of the number is: "
int product = multiply(A, B);
printf("The product is: %i\n", product);
//After you are able to write the function and compile the program, make a header file and move the function protopye and definition here
//Add the include statement at the top of the file
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment