What is the error in this program? please explain
hello @Anku47
these two if statements should come inside for loop.
so
add brackets in ur for loop and put these satement inside that.
like->
for(…) {
cin>>no;
those two statement should be here
}