#include <stdio.h> int main (void) { int i,j,k; for(i=1;i<=8;i++) { for(j=1,k=1;k<=(i+1)/2;k++,j++) printf("%d",j%10); printf("\n"); } system("pause"); return 0; }
The output is given below:
1 1 12 12 123 123 1234 1234
c, c++ , java, oracle, database design, c tutorial, c++ tutorial, java tutorial, oracle tutorial, programming, make program easy, c programming, c advance program, java advance program
#include <stdio.h> int main (void) { int i,j,k; for(i=1;i<=8;i++) { for(j=1,k=1;k<=(i+1)/2;k++,j++) printf("%d",j%10); printf("\n"); } system("pause"); return 0; }
1 1 12 12 123 123 1234 1234
All rights reserved||Using Deluxe Template By Klodian
0 comments:
Post a Comment