Guest

Give me any five programs to design using looping statement

Give me any five programs to design using looping statement

Grade:11

2 Answers

gOlU g3n|[0]uS
42 Points
13 years ago

q1) create using looping statement:     a a a a

                                                       a a a

                                                       a a

                                                       a

2)  1 2 3 4     3) 1 1 1 1    4) create clock contains hour, min, and sec. ur clock tell 

     1 2 3            2 2 2          time frm where the user enter.it will start frm user time

     1 2               3 3            and stop at 24:60:60.[LOOPING]

     1                  4

Sudheesh Singanamalla
114 Points
13 years ago

try generating

1)

*****

****

***

**

*

2) Generate prime numbers upto a value n

suppose if n is 10 it should give out put as

prime numbers are 2,3,5,7

[hint : use nested loop]

 

3)Check if a number is prime or not ?

4)Generate all the characters along with their ASCII numbers

5)try out this

1/x + 1/x^2 + 1/x^3 + 1/x^4 ......................... +1/x^n

user input is 'n'

and u could also try out other Geometric and Arithmetic progressions

 

Think You Can Provide A Better Answer ?

ASK QUESTION

Get your questions answered by the expert for free