Posts

Showing posts from September, 2023

Star pattern screenshot (all 4)

Image
 All the screen shots of star pattern practical for cs class 11 cbse are as follows: (Click on picture to enlarge) Simply download, print and paste in file!!!

WAP to print star pattern #4

Image
The output is as: The code is as: star='* ' n=int(input("Enter lines=")) for i in range(0,n):     print((star*i)) for k in range(0,n+1):     print(star*(n-k))

WAP to print star pattern #3

Image
The output is like: The code is as: star='* ' spc=' ' n=int(input("Enter lines=")) for i in range(0,n):     print((spc*(n-i)+(star*i))) for k in range(0,n+1):     print((spc*(k))+(star*(n-k)))

WAP to print star pattern #2

Image
The output is like: The code is: star='* ' spc=' ' n=int(input("Enter lines=")) for i in range(0,n+1):     print((spc*(i))+(star*(n-i)))

WAP to print star pattern #1

Image
The output is like: The code is: star='* ' spc=' ' n=int(input("Enter lines=")) for i in range(1,n+1):     print((spc*(n-i))+(star*i))