10th Oct 2019, 10:59 AM
Sanzid Sadman
Sanzid Sadman - avatar
4 Answers
+ 2
in the loop you only write c = a. Above the first loop you write: int c=0;
10th Oct 2019, 12:01 PM
HonFu
HonFu - avatar
+ 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.
10th Oct 2019, 11:04 AM
HonFu
HonFu - avatar
0
C is local to the for loop that's why its not p4inting outside the for loop, so follow HonFu instructions
10th Oct 2019, 11:48 AM
✳AsterisK✳
✳AsterisK✳ - avatar
0
so how can i bring that 'a' value and assign it to c?
10th Oct 2019, 11:57 AM
Sanzid Sadman
Sanzid Sadman - avatar