Stuck in lecture

in the coding of pattern…while printing space and stars we are using two variables csp(for space) and cst(for star) …so can we use only one variable because both variables are declare locally ?

@mayanktiwari6957 csp and cst are used for two different things clearly mentioned by you only, so you have to keep those two variables different as they are for different work, now what do you mean by one variable here, you can use them anywhere within the same scope.