Results 1 to 3 of 3

Thread: please eeeeeeeeeeeeeeee

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Expert Member
    Join Date
    May 2008
    Answers
    100

    Thumbs up please eeeeeeeeeeeeeeee

    Just give me an code that will read charactrs from the console untill # is given and displayed them after #is hit. /* it's urgent please it will take your few minutes to type the code*/


  2. #2
    Junior Member
    Join Date
    Jan 2008
    Answers
    14

    Re: please eeeeeeeeeeeeeeee

    using getchar fun u can write this program.


  3. #3
    Expert Member
    Join Date
    Mar 2012
    Answers
    208

    Re: please eeeeeeeeeeeeeeee

    #include <stdio.h>

    int main(void)
    {
    char ch;
    ch = getchar(); /* read a char */
    printf("("Enter characters, '#' to quit."); );
    }

    do {
    c =getch();
    printf("%c,c);
    } while(c != '#');
    }
    }


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
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact