Ask your own question, for FREE!
Engineering 9 Online
OpenStudy (anonymous):

Can any body now how to make a program ***** **** *** ** * on turbo c.

OpenStudy (anonymous):

hello,not on C but I know the solution in c++ if it helps???

OpenStudy (anonymous):

#include<stdio.h> #include<conio.h> int main(){ int i,j,r; printf("Enter the number of rows: "); scanf("%d",&r); for(i=r;i>=1;i--){ for(j=i;j>=1;j--) printf("*"); printf("\n"); } return 0; } i used codeblocks, hope it will execute in turbo c.

OpenStudy (anonymous):

What do you actually want to know ? How to write source codes on turbo C or settings one need to make in TC before writing codes ?

OpenStudy (anonymous):

i just want to know how to print that progrram on scarn.

OpenStudy (anonymous):

#include<conio.h> #include<stdio.h> #include<iostream.h> void main (void) { clrscr(); for(int i=0; i<5; i++) { { for(int j=5; j>i; j--) cout<<"*"; } { for(int k=-1; k<2*i; k++) cout<<" "; } { for(int l=5; l>i;l--) cout<<"*"; } cout<<endl; } getch(); }

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!