SyntaxFix
Write A Post
Hire A Developer
Questions
because of your a and b variable is not have been initialized. You must initialized this variables for excample if you declare this variable like this int a=0; int b=0; than your code run without error.