Showing posts with label 543212345 4321234 32123 212 1 half-square number triangle. Show all posts
Showing posts with label 543212345 4321234 32123 212 1 half-square number triangle. Show all posts

9.01.2013

Half-Square Number Triangle

Q. Write a C program to print the following half-square number triangle C program as : 

543212345
 4321234
  32123
   212
    1

Ans.

/*c program for half-square number triangle*/
#include<stdio.h>
int main()
{
 int num,r,c,n,sp,p;