Category Archives: model2020
HAPPY NUMBER
A happy number is a number in which the eventual sum of the square of the digits of the number is equal to 1. Continue reading
MATRIX SYMMETRIC
Write a program to declare a square matrix A[][] of order MxM where ‘M’ is the number of rows and the number of columns, such that M must be greater than 2 and less than 10. Continue reading
COMPOSITE MAGIC NUMBER
A Composite Magic number is a positive integer which is composite as well as a magic number.
Composite number : A composite number is a number which has more than 2 factors. Continue reading
REMOVE WORD
Write a program to accept a sentence which may be terminated by either ‘.’ ‘?’ or ‘!’ only. Any other character may be ignored. The words may be separated by more than one blank space and are in UPPER CASE Continue reading
VALID DATE
Design a program which accepts your date of birth in dd mm yyyy format. Check whether the date entered is valid or not. If it is valid, display “VALID DATE”, also compute and display the day number of the year for the date of birth. Continue reading