Computer Science, asked by dulcy, 4 months ago

17. Write a program in BASIC to display the given patterns:
(i) 5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
(ii) 5 4 3 2 1
4 3 2 1
3 2 1
2 1
1


Plz don't spam​

Answers

Answered by smitakumari28
2

Answer:

(I) in first pattern we have to remove last 1 digit and then subtract 5555-1111

then we get 4444 then again we have to remove 1 digit and then

subtract 444-111 in this pattern this process will continue.

(ii) in second pattern we have to remove last 1- digit and then subtract the no. 5432-1111

and then again remove last digit and subtract 432-111

Answered by anadikedia4
6

Answer:

Hehehehe bluej program.

class num()

[

void main ()

{

for (i=5 ,i >1 ,i--)

{

for( j=5 ,j=i,j--)

system out. println()

}

}

}

Hehehehe kitna hard hota hai computer ka program. ye to aasan program hai. 10th ka to bahut hard hai Hehehehe

Similar questions