Hello.
Yeah a few exercises for you to practice on for loops and coming to the first exercise.
You need to write a program that accepts a number from the user and then calculates the factorial of
the number next consider the sequence X equal to N squared plus one for these integers and equal to
zero to capital and.
You need to write a program that prints out x underscored in four and equal to zero up to 20.
You need to use a while loop to generate the sequence.
Next you need to write a program that repetitively accepts non zero integers from the user.
That means until the user types are zero you need to accept all the integers and then display the sum
of the integers entered by the user.
Next in the next exercise you need to write a program that accepts a positive integer from the user.
And then you need to display an N by N squared in the output using this character.
The Asterix character you need to display a square say for example if the user has entered a positive
integer 3 from the keyboard then in the output you need to write a program that displays a 3 by 3 square
like this and in this program you can use nested loops in order to draw this grid.
So please go ahead and practice these exercises.