Home Qbasic Program Write a qbasic program to display perfect number or not. Write a qbasic program to display perfect number or not. By -ALK 8:23:00 AM 0 Ans: CLS INPUT "Enter a number ";n FOR j=1 TO n-1 IF n MOD j=0 THEN Sum=Sum+j END IF NEXT j IF n=Sum THEN PRINT "It is perfect number" ELSE PRINT "It is not perfect number" END IF END Tags: Qbasic Program Facebook Twitter Whatsapp Newer Older
Your suggestions / query encourages more to share things like this. Feel free to comment in below box.
What ever you think about it...