Tag Archives: given number


Draw a corresponding flow chart to find the factorial of a given number using recursion. 10m Dec2008

1. (a) Design an algorithm, draw a corresponding flow chart and write a program in ‘C’, to find the factorial of a given number using recursion. 10m Dec2008   Flowchart: Code: #include<stdio.h> void main() { int factorial(); int FACT,NUM; clrscr(); printf(“ENTER NUMBER : “); scanf(“%d”,&NUM); if(NUM>0) { FACT=factorial(NUM); printf(“\nFACTORIAL OF GIVEN NUMBER IS %d “,FACT);… Read More »

An assembly language program to reverse the given number and check if the number is palindrome – IGNOU MCA Assignment 2015 – 16

MASTER OF COMPUTER APPLICATIONS Course Code : MCS-017 Course Title : C and Assembly Language Programming(Lab Course) Assignment Number : MCA(I)/L-017/Assignment/15-16 Maximum Marks : 100 Weightage : 25%   Develop and execute an assembly language program to reverse the given number and check if the number is palindrome.    DATA SEGMENT NUM1 DW 12321 NUM2… Read More »

Assembly language program to find the Square of a number – IGNOU MCA Assignment 2015 – 16

Q. Write a program in assembly language to find the Square of a given number.  Course Code : MCS-017 Course Title : C and Assembly Language Programming(Lab Course) Assignment Number : MCA(I)/L-017/Assignment/15-16 Maximum Marks : 100 Weightage : 25% Solution :  DATA SEGMENT NUM DB ? RES DB 10 DUP (‘$’) MSG1 DB “ENTER NUMBER… Read More »