C Programming Tutorial

 
 
 
 

Image

#include <stdio.h>
#include <conio.h>
#include <string.h>
void main(){
     int len;
     char s[]=\"Syntax-Example;
     clrscr();
     len = strlen(s);
     while(len>0){
    printf(\"\\n%-15.*s\",len,s);
    len--;
     }
     getch();
}

 
 
Didn't find what you were looking for? Find more on Program to display reverse triangle of characters