Tag Archives: square

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 »

Write a program in ‘C’ to print automorphic numbers. The automorphic number is a number in which the square of the number contains the number in the end. 10m Dec2005

Write a program in ‘C’ to print automorphic numbers. The automorphic number is a number in which the square of the number contains the number in the end. Example: (a) 5; 25 (b) 6; 36. 10m Dec2005 #include<stdio.h> void main() {   int SQ,i,NUM;   clrscr();   printf(“AUTOMORPHIC NUMBERS BETWEEN 0 TO 999 ARE :… Read More »

ASSEMBLY28 An Assembly program, which takes the input of 4-digit number, and display the sum of square of digits

Now we will write another Assembly program, which takes the input of  4-digit number, and display the sum of square of digits Let’s identify variables needed for this program. First variables will be the one which will hold the value entered by user in the variables D1, D2, D3, D4 to save 4-Digits separately in 4 variables  and variable SUM will hold sum of… Read More »