CBSE BOARD XII, asked by guddu6930, 1 year ago

The following code has errors . Rewrite the correct code underlining all the corrections made :
Integer counter =0;
For (num =1; num>=1 ; num--):
{
If i%num =0
counter = counter + 1 ;
}

Answers

Answered by vaibhav7839
0
int counter =0;
`````
int i=2;
`````````````
for(int num=1;num<=100;num++)
{ ````` `````````````````````````````````
if(num%i==0)
{ ```````````````````````
counter=counter+1;
}
}
``
Similar questions