Pattern 14

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

C Code


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

C++ Code


         *
       * *
     * * *   
   * * * *    
 * * * * * 
#include<iostream.h> #include<conio.h> void main() { int z=1; int n=5; clrscr(); for(int i=1;i<=n;i++){ for(int j=n-1;j>=i;j--) { cout<<" "; } for(int k=1;k<=z;k++) { cout<<"*"; } z++; cout<<endl; } getch(); }

Java Code


         *
       * *
     * * *   
   * * * *    
 * * * * *  
class Pattern_14 { public static void main(String args[]) { int n=5; //size int z=1; for(int i=1;i<=n;i++) { for(int j=n-1;j>=i;j--) { System.out.print(" "); } for(int k=1;k<=z;k++) { System.out.print("*"); } z++; 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 !!!