#include #include main() { int i,i=50,r=60; clrscr(); for(i=0;i<5;i++) { gotoxy(c,r); for(j=0;j<1;j++) { printf("* "); } c-=2; r+=2; } getch(); } NEW METHOD WITHOUT GRAPHICS... #include<stdio.h> #include<conio.h> main()
{
int row,i,n,star=1;
clrscr();
printf("Enter the no. of rows u want ");
scanf("%d",&n);
for(row=n;row>0;row--)
{
for(i=1;i<row-1;i++)
{
printf(" ");
}
for(i=1;i<=star;i++)
{
printf("*");
}
star=star+2;
printf("\n");
}
getch();
}
u can get it on helpucode.blogspot.in daniweb.com
yes
find the area of abc a[2,3] c[6,0]
No.
yes
Well, this is a very open question, please be specific, I will try try to answer this as well, a simple c language program can be any thing from printing your name on the screen to printing some patterns using symbols, or making a small game, or a simple calculator program. you can a clearer picture of what can be a simple c language program here:
Please visit http://talentsealed.blogspot.com/2009/10/to-display-triangle-using-c-programming.html for the answer. Please let me know your comments
This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.
The area of a triangle is one half base times height, so you would write a program to input the base and height, giving the option to stop, calculating and printing the area, and then looping to repeat as desired.
Side c of a triangle is opposite angle C
include #include#includevoid main(){int a,b,c:float s,A,x=1/2;clrscr();printf(" three sides of a triangle\n");scanf("%d %d %d",&a,&b,&c);s=(a+b+c)/2;A=pow((s(s-a)(s-b))(s-c)),x);printf("AREA OF TRIANGLE:%d\n"'A);gech();}
C. L. Burdick has written: 'Colouring relief printing with the aerograph' 'Printing without printing rollers'