0% found this document useful (0 votes)
4 views1 page

Number Printing and Calculations Guide

The document outlines a series of programming tasks focused on printing and manipulating numbers within specified ranges. Tasks include printing even and odd numbers, multiples of specific integers, sums of various sets, and applying mathematical operations based on divisibility. It serves as a guide for implementing basic programming logic and arithmetic operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Number Printing and Calculations Guide

The document outlines a series of programming tasks focused on printing and manipulating numbers within specified ranges. Tasks include printing even and odd numbers, multiples of specific integers, sums of various sets, and applying mathematical operations based on divisibility. It serves as a guide for implementing basic programming logic and arithmetic operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

QUEST INNOVATIVE SOLUTIONS

●​ Print all even numbers from 2 to 50.


●​ Print all odd numbers from 1 to 50.
●​ Print the first 10 multiples of 3.
●​ Print the first 10 multiples of 5 in reverse order.
●​ Print all numbers divisible by 4 between 1 and 100.
●​ Print the sum of numbers from 1 to 50.
●​ Print the sum of even numbers and sum of odd numbers
from 1 to 50.
●​ Print numbers from 1 to 50 that are divisible by both 2 and 5.
●​ Print squares of numbers from 1 to 10.
●​ Print cubes of numbers from 1 to 10.
●​ Print all numbers from 1 to 100 that are divisible by 7.
●​ Print numbers from 50 to 1 that are divisible by 3.
●​ Print the sum of squares of numbers from 1 to 10.
●​ Print the sum of cubes of numbers from 1 to 5.
●​ Print numbers from 1 to 20 along with their square roots (use
float).
●​ Print the first 10 even numbers and their half values.
●​ Print numbers from 10 to 30, but skip numbers divisible by 4.
●​ Print numbers from 1 to 15; if divisible by 2 print square, if
divisible by 3 print cube.
●​ Print all odd numbers from 1 to 99 and calculate their average.
●​ Print numbers from 1 to 10; if number is even multiply by 2, if
odd multiply by 3.
●​ Print numbers from 1 to 20; if divisible by 2 subtract 1, if
divisible by 3 multiply 3, else add 1.
●​ Print numbers from 1 to 20; if divisible by 2 print half the
number, else print double the number.
●​ Print numbers from 1 to 10; for each number, print its square if
even and cube if odd​

You might also like