Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29
  1. #21

    having good foundation is essential to succeed in programming. . .

  2. #22
    based sa mga solutions nga napost dri, kaya na na nimu TS... analyze lang...

  3. #23
    ghapon pajud ko ga cge usab2 sa codes para ma diamond xa pero ang result kay mag cge lang ka endless loop. clue lang bi, mag himo pako lain na loop ani? or naa ra sa condition akong usbon? kay if maghimo pako ug lain na loop gud, unsa man pud akong ibutang sulod sa iyang loop?

  4. #24
    i-post nlng imong gbuhat. Nya ask specific questions. bati kaayo mag cge rkag pangutana, mga taw dri d ganahan mu tabang.

    Ako style sa pag engage ug programming problem noh, is to first make it work. Then, make it work better.

    Meaning, ayaw sa buhata tanan gi-ask sa problem. kwaa lng sa ang solution. kumbaga i-manual tanan ba. Then, kung makuha na nmu ang desired output, pde na dayon nmu i-examine imo code. "Asa mn ko maka optimize ani ha?", "unsa may mga balik2x nko nga code dri?", "Unsa may pde nko i-loop?"

    Inig gawas ana na mga pangutana magkaduol na dayon ka sa imo desired solution.

    Good luck.

  5. #25
    ok. thanks nalang.. solve na nako ang problem.


    #include<stdio.h>
    #define DIAMOND 10

    main()
    {
    int i,j,k,a,b,c,x;


    for(i=1;i<=DIAMOND;i++)
    {
    printf("\t");
    for (k=1;k<=(DIAMOND-i);k++)
    {
    printf(" ");
    }
    for(j=0;j<i;j++)
    {
    printf("*");
    printf(" ");
    }
    for(k=1;k<=(DIAMOND-i-1);k++)
    {
    printf(" ");
    }
    printf("\n");
    }



    for(i=(DIAMOND-1);i>0;i--)
    {
    printf("\t");
    for (k=(DIAMOND-i);k>0;k--)
    {
    printf(" ");
    }
    for(j=i;j>0;j--)
    {
    printf("*");
    printf(" ");
    }
    for(k=(DIAMOND-i-1);k>0;k--)
    {
    printf(" ");
    }
    printf("\n");
    }
    getch();
    }


    thank you sa inyong idea.

  6. #26
    Nara man diay na.

  7. #27
    1. wala npuy [code] tags. mkalibat. in-ani-on nag gamit o.
    Code:
    ['code']
        your code here. //kwaa lng ang single quotes
    ['/code']
    2. duha mn lagi na ka printf("*")?

  8. #28
    @kamahak : wla nakoy lain mahuna2an pa.. praktis raman pud ni nako.. dli mani xa assignment.. if naa ka idea unsaon nga 1 ra ka printf din share it wid me.. if not, ok ra.. dli man sad ko mamugos.. no offense lang..

  9. #29
    hint: you can use the slope function you have learned in math, and divide the diamond into triangles, like create a function for a slope print

  10.    Advertisement

Page 3 of 3 FirstFirst 123

Similar Threads

 
  1. Skin and Fur Problems for Dogs~
    By chanbri in forum Pet Discussions
    Replies: 228
    Last Post: 07-31-2011, 07:00 AM
  2. Anyone here having no internet problems for 2 weeks? (PLDT)
    By pinkchocobo in forum Networking & Internet
    Replies: 3
    Last Post: 09-23-2010, 05:51 PM
  3. for loop problem
    By istoryansucks in forum Programming
    Replies: 2
    Last Post: 08-08-2010, 04:15 AM
  4. Replies: 20
    Last Post: 12-02-2009, 10:56 PM
  5. Compatible ink problem for Epson C63
    By KittyAnnette in forum Computer Hardware
    Replies: 13
    Last Post: 02-18-2006, 03:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top