This program crashes. It allows me to enter a number that I want to multiply but then it just crashes instead of doing the multiplication.
Code:
#include <stdio.h>
int main()
{
int sum, num1, count; /*Variable to hold count*/
count=1; /*Count set to 0*/
printf("Enter the number you wish to multiply:\n");
scanf("%d" ,num1);
while (count < 13) /*While count is less than 5 program loops*/
{
sum = num1*count;
printf("Multiplying %d by %d is %d\n", num1, count, sum); /*Prints sum*/
count = count+1; /*count adds one*/
} /*End of while loop*/
return 0; /*Exits the program*/
}