Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

s2

  • 4 years ago

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

  • This Question is Closed
  1. diana_d
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

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

  2. deEEx
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    #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.

  3. shubham
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    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 ?

  4. s2
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 2

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

  5. haidermrz
    • 4 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    #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(); }

  6. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy