Task 1: Find the odd triangular numbers that are smaller than a number specified by the user and print them. For example, if the user chooses to print all the odd triangular numbers smaller than 50, the program should print 1, 3, 15, 21, 45. The program should keep a count of how many triangular numbers were even and how many of them were odd up to the maximum given by the user and print this information too
Task 2: Find the numbers that can be written as the product of two nonnegative odd integers in succession and print them in increasing order. For each number found the program should check whether the number is a factor of a number chosen by the user and indicate this in the output. (For example, 35 is such a number as it can be written as the product of 5 and 7 (35=5x7), which are two odd numbers in succession). The user should specify how many such numbers they want to print, starting from a minimum value.
30th Nov 2022
1. How does the Hustler Fund work? a) Provides a digital platform with the best deals on financial products b) Provides digital tools to help cust
20th Jan 2023
You can now download a soft copy of the kcse result slip from the KNEC official website. To download your result slip, follow the following step: Visit
online result slip, kcse 2022, dowloading kcse results,10th Nov 2022
Answer: YES! Having a professional, SEO-friendly website has has all the advantages for your business in the long run than you think. Here ar
Comments (0)
Leave a Comment