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 :
https://msdn.microsoft.com/en-us/library/windows/desktop/ms681385(v=vs.85).aspx
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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.