Below is my code that should calculate the ISBN number of a book:
#include <cs50.h>
#include <stdio.h>
#include <math.h>
int main(void)
{
    int isbn[] = 0;
    printf("Please enter ISBN number: \n");
    scanf("%d", &isbn);
    int num = 0;
    int times_by = 1;
    long long sum;
    long long sum1;
    long long result = 0;
    for (num = 0; num <= 9; num++){
        sum = isbn[num] * times_by;
        sum1 = sum + sum;
        times_by++;
    }
    result = sum / 11;
    if (result == 0){
        printf("Yes\n");
    } 
    else {
        printf("No\n");
    }
}
It is telling me that there is a problem with the initiator of isbn. I tried to create an array, which the inputted ISBN number would be saved to after, though Im not sure if this is possible..
 
     
     
    