1 00:00:01,500 --> 00:00:02,750 Hello. 2 00:00:02,790 --> 00:00:11,380 Yeah a few exercises for you to practice on for loops and coming to the first exercise. 3 00:00:11,580 --> 00:00:20,430 You need to write a program that accepts a number from the user and then calculates the factorial of 4 00:00:20,430 --> 00:00:31,220 the number next consider the sequence X equal to N squared plus one for these integers and equal to 5 00:00:31,220 --> 00:00:34,840 zero to capital and. 6 00:00:34,900 --> 00:00:44,140 You need to write a program that prints out x underscored in four and equal to zero up to 20. 7 00:00:44,140 --> 00:00:47,790 You need to use a while loop to generate the sequence. 8 00:00:47,950 --> 00:00:57,270 Next you need to write a program that repetitively accepts non zero integers from the user. 9 00:00:58,010 --> 00:01:05,720 That means until the user types are zero you need to accept all the integers and then display the sum 10 00:01:05,720 --> 00:01:09,440 of the integers entered by the user. 11 00:01:09,440 --> 00:01:17,000 Next in the next exercise you need to write a program that accepts a positive integer from the user. 12 00:01:17,540 --> 00:01:27,180 And then you need to display an N by N squared in the output using this character. 13 00:01:27,200 --> 00:01:35,870 The Asterix character you need to display a square say for example if the user has entered a positive 14 00:01:35,990 --> 00:01:45,500 integer 3 from the keyboard then in the output you need to write a program that displays a 3 by 3 square 15 00:01:45,620 --> 00:01:54,170 like this and in this program you can use nested loops in order to draw this grid. 16 00:01:54,180 --> 00:01:57,930 So please go ahead and practice these exercises.