here is the solution of ur answer.. :)
# include<iostream.h>
# include <conio.h>
main()
{
int space=10; \\ to print the pyramid in center, you can also increase the # of spaces
for (int i=0;i<=5;i++)
{
for (int k=0;k<space;k++)
{
cout<<" ";
}
for (int j=0;j<2*i-1;j++)
{
cout<<"*";
}
space--;
cout<<endl;
}
getch();
}
how to create a c program for left factoring.
int main () {}
printf ("x")
how can create a attendece sheet in c language
#include<iostream.h>
C programs do not require header files. If you want a C program without header files, you can simply not create them. However, you may or may not be able to include your non-header file source files.
You might be able to use C to extract data from an Excel file, but there is no easy way to write a program to create an Excel file.
To create a pyramid hologram, you will need a smartphone or tablet, a clear plastic pyramid, and a hologram video. Place the pyramid on top of the screen with the video playing, and the 3D hologram will be projected inside the pyramid.
In programming, specifically in C and C++, the hashtag (#) is used to include files into the main program and to create macros.
#include<stdio.h> main() { int i,j; for(i=0;i<10;i++)//replace 10 by any no. you need { for(j=i;j>0;j--) { printf(" "); } for(j=10-i;j>0;j--)//here also printf("* "); printf("\n"); } }
The first pyramid was the stepped pyramid of Zoser. It can be seen in Saqqara, Egypt. It was built c.4770 years ago. The first smooth-faced pyramid was built for Snefru in c. 2620BC.
To print the given pyramid pattern in C, you can use nested loops. The outer loop controls the rows, and the inner loop controls the numbers to be printed in each row. Here's a simple C program to achieve this: #include <stdio.h> int main() { int rows = 5; for (int i = 1; i <= rows; i++) { for (int j = 1; j <= i; j++) { printf("%d", j); } for (int j = i - 1; j >= 1; j--) { printf("%d", j); } printf("\n"); } return 0; } This program will output the desired pyramid pattern.