#include < stdio.h >int main() {int i,j,rows;printf(“Enter the number of rows: “);scanf(“%d”,&rows); for(i=1;i<=rows;++i){for(j=1;j<=i;++j) { printf(“%d “,j);}printf(“\n”);}return 0;}
July 11, 2013 • 4:25 pm 1
Ascending Pyramid of Numbers in C
October 25, 2006 • 9:36 am 0
Puzzle – Try it first without compiling
#include <iostream> Read the rest of this entry »
Filed under: Basic
October 25, 2006 • 9:34 am 0
To remove a C program by itself after its execution
//The following program will serve your purpose. Read the rest of this entry »
Filed under: Basic
August 29, 2006 • 3:44 pm 1
Swapping without temporaries
This is the question i have got from most of the forums and usenet groups.check out this cool code. Read the rest of this entry »
Filed under: Arrays & pointers, Basic
August 24, 2006 • 4:38 pm 0
Program to remove repeated occurance of char in string
void main()
{ Read the rest of this entry »
Filed under: Arrays & pointers, Basic
August 24, 2006 • 4:36 pm 1
Puzzle for fun
WAP to print numbers from 1 to 100 without using any condition checking statment Read the rest of this entry »
Filed under: Arrays & pointers, Basic, Functions & Structures, OOP
August 24, 2006 • 4:34 pm 0
Rotation problem
rotate a one-dimentional array of n elements Read the rest of this entry »