Pattern 12

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

C Code


1 2 3 4 5
1 2 3 4
1 2 3
1 2
1  
#include<stdio.h> #include<conio.h> void main() { int i,j; clrscr(); for(i=5;i>=1;i--) { for(j=1;j<=i;j++) { printf("%d",j); } printf("\n"); } getch(); }

C++ Code


1 2 3 4 5
1 2 3 4
1 2 3
1 2
1   
#include<iostream.h> #include<conio.h> void main() { clrscr(); for(int i=5;i>=1;i--) { for(int j=1;j<=i;j++) { cout<<j; } cout<<endl; } getch(); }

Java Code


1 2 3 4 5
1 2 3 4
1 2 3
1 2
1   
class Pattern_12 { public static void main(String args[]) { for(int i=5;i>=1;i--) { for(int j=1;j<=i;j++) { System.out.print(j); } 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 !!!