Tag Archives: given number

Write a program in assembly language to reverse a given number – IGNOU MCA Assignment 2017 – 18

MASTER OF COMPUTER APPLICATIONS Course Code : MCSL-017 Course Title : C and Assembly Language Programming (Lab Course) Assignment Number : MCA(1)/L-017/Assignment/17-18 Maximum Marks : 50 Weightage : 25% Write a program in assembly language to reverse a given number – IGNOU MCA Assignment 2017 – 18 Code:- DATA SEGMENT NUM1 DW 12345 NUM2 DW… Read More »

Write a macro to find cube of a given number. 4m Jun 2010

Write a macro to find cube of a given number. 4m Code: #include<stdio.h> #define CUBE(N) (N * N * N ) void main() { int NUM; clrscr(); printf(” Enter number : “); scanf(“%d”,&NUM); printf(“\n Cube of number is : %d “,CUBE(NUM)); getch(); } Screen Shots:     (c) Write a program in C, using structures… Read More »

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 »