
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

1 Dr. Yahia Fares University of Médéa Faculty of Sciences L1 CS Department of Mathematics and Computer Science Algorithmics and Data structures 1
Write a program to display the multiplication table of a given integer N. E.g. N= 3×1= 3×2= 3×3= 3×4= 3×5=
Write a program that multiplies two natural numbers A and B by using “For” loop instead of the
Write a program that repeatedly enters an integer value and displays its square. The process terminates when 0 is entered.
Write a program which determines the first integer N such that the sum of 1 to N strictly exceeds 100
Given an integer, write a program that displays the sum of its digits. E.g. 2847 2+8+4+7= 21
Write an algorithm that finds and displays all 3-digit natural cubic numbers. A cubic number equals the sum of its three digits cubed. E.g 153 is cubic because 153 = 1^3 + 5^3 + 3^3.