Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Signature of Supervisor :
Mrs.saranya jyothi mam
Assistant professor
Department of CSE,
2
ABSTRACT
This programme is used to do the things in particular values of the
data given by the users.this can be having the the most precious
one who can do the building things in a better way that can have a
programme which can do things in better way.this programme
helps in getting a math lab calculation this can be used in doing
maths as in logical thinking.Moreover, the report specifics how
well these methods of solving solves the puzzle and achieved the
goal of this implementation. The report concludes by evaluating
the end application to analyse how good it met its objectives and
the performance of solving algorithms. Finally, the report
summarises the overall achievements of the application development
and indicates other possible extensions.
3
INTRODUCTION :
Pattern programs in C language: These programs print various patt
erns of numbers and stars. These codes illustrate how to create var
ious patterns using C programming. The C programs involve usag
e of nested for loops (a for loop inside a for loop). A pattern of nu
mbers, star or characters is a way of arranging these in some logic
al manner or they may form a sequence. Some of these patterns ar
e triangles which have special importance in mathematics. Some p
atterns are symmetrical while others are not. Please see the compl
ete page and look at comments for many different patterns.
➢ BACK GROUND :
1) Backtracking pyramid .
2) Brute-force a pyramid.
3) Stochastic search.
4
OVER VIEW OF THE PROJECT :
SYSTEM ANALYSIS :
DEVELOPMENT OF ENVIRONMENT :
HARDWARE REQURIMENTS :
5
SOFTWARE REQURIMENTS :
6
SYSTEM DESIGN :
We have shown five rows above; in the program, you will be a
sked to enter the numbers of rows you want to print in the pyr
amid of stars.
1
232
34543
4567654
567898765
IMPLEMENTATION :
The programme has many execution of pyramids of triangle so thi
s can have very easy process to do the programme.
SOURCE CODE :
This programme is done in the visual studios to get result.
7
Pattern program in C : CODING :
#include <stdio.h>
int main()
{
int i, space, rows, k=0, count = 0, count1 = 0;
printf("Enter number of rows: ");
scanf("%d",&rows);
for(i=1; i<=rows; ++i)
{
for(space=1; space <= rows-i; ++space)
{
printf(" ");
++count;
}
while(k != 2*i-1)
{
if (count <= rows-1)
{
printf("%d ", i+k);
++count;
8
}
else
{
++count1;
printf("%d ", (i+k-2*count1));
}
++k;
}
count1 = count = k = 0;
printf("\n");
}
return 0;
}
Output of program:
1
232
34543
4567654
567898765
9
Result :
Testing :
Conclusion :
This section concludes the report with what have been achieved.
In addition, it discusses future activities that could be added to the
application
10