Input: The number of lines to print stars. Output: Star pattern. V2 - Logic: We used 2 for loops. V1 - Logic: We used simple fix approach of print to print 5 lines of *.
Input : Any natural number V1 Logic : I used for loop and summ variable V2 Logic : I used formula for sum of n natural numbers Output : Sum of natural numbers
Comments
Post a Comment