+ 1
why c is not printing?
4 Answers
+ 2
in the loop you only write c = a.
Above the first loop you write:
int c=0;
+ 1
You declared c in that for loop, which means, it isn't known outside of it.
Declare and initialize it together with a and you're fine.
0
C is local to the for loop that's why its not p4inting outside the for loop, so follow HonFu instructions
0
so how can i bring that 'a' value and assign it to c?