Search:

Type: Posts; User: bozware

Search: Search took 0.00 seconds.

  1. Thread: scanf issue

    by bozware
    Replies
    16
    Views
    10,101

    Re: scanf issue

    char yn;

    printf("Are you male? ");
    scanf(" %c", &yn);
    do {
    switch (yn) {
    case ('y'):
    printf("You're a boy!\n");
    yn = ' ';
    ...
  2. Thread: scanf issue

    by bozware
    Replies
    16
    Views
    10,101

    Re: scanf issue

    #include <stdio.h>

    int main()
    {
    char yn;

    printf("Are you male? ");
    scanf("\n%c", &yn);
    if (yn == 'y')
    printf("You're a boy!\n");
  3. Replies
    5
    Views
    12,861

    Re: get to know you thread

    1.) What made you start learning coding?
    Well, I enjoy learning about different types of programming languages and being able to solve problems using them. I have a fascination towards artificial...
Results 1 to 3 of 3