Computer Science, asked by deepakPGDV, 6 months ago

any one tell me some designs of codings to answer questions, colourfully.​

Answers

Answered by harnathyadav2907
0

public class Edureka

{  

   public static void pyramidPattern(int n)  

   {  

       for (int i=0; i<n; i++) //outer loop for number of rows(n) { for (int j=n-i; j>1; j--) //inner loop for spaces

           {  

               System.out.print(" "); //print space

           }  

           for (int j=0; j<=i; j++ ) //inner loop for number of columns

           {  

               System.out.print("* "); //print star

           }  

 

           System.out.println(); //ending line after each row

       }  

   }  

 

   public static void main(String args[]) //driver function

   {  

       int n = 5;  

       pyramidPattern(n);  

   }  

}

THANK YOU

I HOPE IT WILL HELPS YOU.....

Answered by Angelsonam
2

Answer:

Use tex instead of tx

it is coding for writing text in box:

[tx]\huge\boxed{\fcolorbox{red}{pink}{Answer!☺}}[/tex]

The coding of rotating cube is also available in one of my question's answer.

Similar questions