skip to main
|
skip to sidebar
Pages
Home
Softwares
Videos
Books
Codes
Finishing School
To Grow in Subject
Ads 468x60px
Labels
C Tutorial
(16)
E-Books
(5)
First
(1)
Head First Books
(8)
How To
(2)
Program codes
(13)
Softwares
(1)
Wednesday, 12 September 2012
Simplified pattern code
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,k,a=4;
clrscr();
for(i=0;i<5;i++)
{
for(j=0;j<9;j++)
{
if((j>7-i||j<i+1)
printf("%d ",a);
else
printf(" ");
}
printf("\n");
a--;
}
getch();
}
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Social Icons
General
C Tutorial
(16)
E-Books
(5)
First
(1)
Head First Books
(8)
How To
(2)
Program codes
(13)
Softwares
(1)
Blog Archive
►
2013
(1)
►
July
(1)
Jul 23
(1)
▼
2012
(46)
▼
September
(46)
Sept 17
(2)
Sept 13
(14)
Sept 12
(1)
Sept 11
(3)
Sept 06
(13)
Sept 05
(3)
Sept 04
(5)
Sept 03
(5)
Powered by
Blogger
.
Popular Posts
Tower Of Hanoi C Code Using Recursion
How to Play: To play the Towers of Hanoi game, you must move the discs from peg A to peg B by moving one disc at a time. A lar...
C Program to Disable and Enable Usb Port
Logic of the program The logic of the program is simple. The 'C' source file block_usb.c writes the DWORD value of 4 (100...
Head First HTML5 Programming
HTML has been on a wild ride. Sure, HTML started as a mere markup language, but more recently HTML's put on some major muscle. Now we...
Head First Java
Click Here To Down lo ad Head First Java delivers a highly interactive, multisen...
Head First C#
You want to learn C# programming, but you're not sure you want to suffer through another tedious technical book. You're in luck: H...
Head First SQL
Maybe you've written some simple SQL queries to interact with databases. But now you want more, you want to really dig into those dat...
C Program for Factorial of a Number using Recursive Functiol
#include<stdio.h> #include<conio.h> long int factorial(int n); void main() { int n; clrscr(); printf("Enter the numb...
Head First Programming
Looking for a reliable way to learn how to program on your own, without being overwhelmed by confusing concepts? Head First Programming int...
Rules that are applicable to all C programs
(a) Each instr...
Else-if Control Structure
Else-if: A Multipath decision is a chain of if s in which the statement associated with each else is an if. Syntax: if...