I got the error mentioned in the title on this line of code. number%divisor=final;
In this code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream>
int main (int argc, char * const argv[]) {
int number=0, divisor=0, final;
std::cout<<"Please enter a number\n";
std::cin>>number;
while (divisor<number){
divisor=+1;
number%divisor=final;
if (final==0){
std::cout<<divisor<<"\n";
}
}
std::cout<<"done\n";
return 0;
}