Hello guys,
I had been writing program in Turbo C 7. For few days programs were working correctly but today I am getting different output.I tried doing simple program finding perfect number or not.But I get this output for perfect numbers as :
"1308 is perfect number"
and for non-perfect numbers as
"1308 is not perfect number"

Then I tried doing Armstrong Number program for this, it gives output for any number same :
"1318 is not armstrong number"
I tried finding 1308 and 1318 on net and I found this :
I don't know how to fix it? Is the problem with the coding or something with software?

Hope someone helps me out. Thank you :)

It is most likely your code, but we cannot help pinpoint an issue without seeing the source.