Tag Archives: Ignou MCA Assignment


A C program to find out perfect numbers from 1 and 50 – IGNOU MCA Assignment 2013

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-011 Course Title : Problem Solving and Programming Assignment Number : MCA(1)/011/Assign/13 Assignment 2013    A C program to find out perfect numbers from 1 and 50   #include<stdio.h> void main() { int NUM,I,SUM=0; clrscr(); for(NUM=1;NUM<50;NUM++) { for(I=1;I<NUM;I++) { if(NUM%I==0) { SUM=SUM+I; } } if(SUM==NUM) { printf(“\n%d IS… Read More »