Search:

Type: Posts; User: bozware

Search: Search took 0.01 seconds.

  1. Thread: scanf issue

    by bozware
    Replies
    16
    Views
    838

    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
    838

    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
    820

    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