Search:

Type: Posts; User: vinds.ruls

Search: Search took 0.01 seconds.

  1. Replies
    42
    Views
    7,961

    hey buddy u just need to count da words, so here...

    hey buddy u just need to count da words, so here is a bit of code, m naive here but just tried my best to put out dis 4 u man


    char a[100];
    int count=0;
    printf("Enter the sentence:");
    gets(a);...
  2. Replies
    8
    Views
    2,090

    thank you Quzah, yes I made mistake there, ye it...

    thank you Quzah, yes I made mistake there, ye it should be the way you have stated it. Thank you once again.
    And sorry I couldn't visit you all for a long time.
  3. Replies
    8
    Views
    2,090

    Hi Ubha , Actually if is good...

    Hi Ubha ,

    Actually if is good here but as you want it in switch there is one way, first calculate the index, let it be in variable a, then u can write like this


    sw=a/10;...
  4. Replies
    9
    Views
    2,533

    Hi vart, I mean the program should be...

    Hi vart,
    I mean the program should be something like this


    void main()
    {
    char ans;
    ans=getchar();
    fflush(stdin);
    while (ans!='d')
  5. Replies
    9
    Views
    2,533

    hi, you got to understand one thing here,...

    hi,

    you got to understand one thing here, getchar accepts a character from the standard input device .i.e. keyboard, when u press a character it is stored in 'ans' first, then you press enter...
  6. Replies
    12
    Views
    2,373

    hi man, Hey Im new to this programming...

    hi man,

    Hey Im new to this programming language, so dont mind if I say something wrong ok.

    I think you can go with this code:


    k=0;
    for (i=0;i<9;i++)
    {
  7. Replies
    29
    Views
    4,080

    integer or float instead of char

    hello everyone,

    Im also new to this programming language. Please, forgive me if I say something wrong.
    Actually the person want to display the time taken between two destinations, so he has to...
Results 1 to 7 of 7