Tuesday, February 11, 2014

Print reverse delta with astric using C Language

#include<stdio.h>
int main(){
    char *ptr="*****";
    int i,j;
  

    for(i=0;i<10;i++){
       if(i<6)
         printf("%*.*s\n",5,i,ptr);
       else
         printf("%*.*s\n",5,10-i,ptr);
    }
    return 0;
}

Output of the Program:

No comments:

Post a Comment