| 1. |
Write a program to display the following pattern: 99 79 7 59 7 5 39 7 5 3 1pls fast pls fast |
|
Answer» d Answer:-Question:Write a program to DISPLAY the given PATTERN. Solution:Here comes the program. 1. In Java. public class Pattern { public STATIC void main(String[] args) { int i, j; for(i=9;i>=1;i-=2) { for(j=9;j>=i;j-=2) System.out.print(j+" "); System.out.println(); } }}2. In Python. for i in RANGE(9,0,-2): for j in range(9,i-1,-2): print(j,end=" ") print()3. In C#include |
|