#include<stdio.h> int main() { int i,j,n, a=1; printf("How Many Lines \nYou Want to Print: "); scanf("%d",&n); for(i=n;i>=1;i--) { for(j=1;j<=i;j++) { printf("%d ",a); } a=a+2; printf("\n"); } return 0; }
<?php for($i=1;$i<=4;$i++) { for($j=1;$j<=(1+$i);$j++) { echo $j." "; } echo"<br>"; } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)