Pattern 9

Pattern 9
  • C Code
  • C++ Code
  • Java Code
  • Get these codes on your Android Device

C Code


* * * * *
* * * *
* * * 
* *
*  
#include<stdio.h> #include<conio.h> void main() { int i,j; clrscr(); for(i=1;i<=5;i++) { for(j=5;j>=i;j--) { printf("*"); //put any symbol } printf("\n"); } getch(); }

C++ Code


* * * * *
* * * *
* * * 
* *
*   
#include<iostream.h> #include<conio.h> void main() { clrscr(); for(int i=1;i<=5;i++) { for(int j=5;j>=i;j--) { cout<<"*"; // any character or symbol '#' etc } cout<<endl; } getch(); }

Java Code


* * * * *
* * * *
* * * 
* *
*   
class Pattern_9 { public static void main(String args[]) { for(int i=1;i<=5;i++) { for(int j=5;j>=i;j--) { System.out.print("*"); } System.out.println(); } } //end of main } //end of class

Android Apps


Get pattern printing codes on your Android Device :

# C Pattern Programs Free App
# C++ Pattern Programs Free App
# Java Pattern Programs Free App


Get Them Now !!!

Download Code           More Patterns !!!