I'm using a function of the library CS50 on cs50's environment, and this is how you store a value on a variable gathering it with an input:
long i = get_long("Enter a long: ");
Here comes my code:
#include <stdio.h>
#include <cs50.h>
#include <math.h>
int main(void)
{
do
{
long cardNum = get_long("Card number:\n");
}
while (0 <= cardNum <= 9999999999999999);
if (340000000000000 <= cardNum <= 379999999999999)
{
...and so on.
The issue WAS
use of undeclared identifier 'cardNum'
I've added:
long cardNum;
BEFORE the do-while loop; PROBLEM SOLVED.