My program didn't work . I couldn't find any mistake . When i compiled it , it showed error in 17 line .What should i do ?
Here is my code :
Code:
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
main()
{long int a,b,c,d,e,f;   
d=1; 
scanf("%ld",&a);
for(e=a;e>=1;e--)
{f=a%e;
if(f==0)
{
for(b=1;b<=sqrt(e);b++)
{c=e%b;

if(c==0)
{d=d+1;
 
      }
       }
if(d==2)
{
goto AA;}
}

        } 
        }  

AA:
print("%ld",e);        
system("pause");  
      }

Last edited by shabbir; 1Feb2010 at 09:43.. Reason: Code blocks