Pages

Subscribe:

Tuesday, January 24, 2012

Array +

#include<stdio.h>
#include<stdlib.h>

int main(){
    int i,j;
    int n[10] ={0,1,2,3,4,5,6,7,8,9};
    for(i=0;i<10;i++){
                         printf("%5d",n[i]);
                         for(j=1;j<=n[i];j++)printf("%c","*");
                         printf("\n");
                         }
    system("PAUSE");
    return(0);
}

No comments:

Post a Comment

Please...Follow my Blog and Leave your Comments!!!
Thank You...

Popular Posts