I can't seem to figure out why I am get the error 2065: Undeclared identifier for 'PowerValue' and C2143:Syntax Error : Missing ';' before 'type' on line 13.
Code:
#include <stdio.h>
#include <stdlib.h>
void main ()
{
int NumbertoMultiply;
int X; /*Answer after the number get multiplies a number by a factor 2 to the power n*/
printf("Please enter the number to multiply: ");
scanf_s("%d",NumbertoMultiply);
int PowerValue;
printf("Please enter the number for the power: ");
scanf_s("%d",PowerValue);
X = (NumbertoMultiply << PowerValue);
printf("Here is the value of X which was multiplied by your given number by a factor 2 to the power: %d",X);
}