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
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
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
Hindi,
1 month ago
Physics,
1 month ago
Social Sciences,
4 months ago
Math,
4 months ago
Social Sciences,
10 months ago