Search:

Type: Posts; User: Beginner2002

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,641

    Output formatting

    How to format out put so as to print it like this



    The value is: 34567
    The second value: 1
    The third value is: 345
    The name of...
  2. Replies
    3
    Views
    1,808

    clarification

    Hi
    You are right .I think the use of Binary search is necessary because the next response depends on the users' previous responses .

    There are 3 responses -
    >Correct
    >Too low .Try again
    >Too...
  3. Replies
    3
    Views
    1,808

    high or low !

    Hi
    Maybe this question is redundant and I apologise if it is ,cause I tried searching I was not able to find the exact answer .

    If I want to find out if the user-typed value is too low or too...
  4. Replies
    2
    Views
    861

    rand question

    Hi
    I'm writing a program to for an elementary school student to learn multiplication .

    I'm generating random numbers to produce the one digit integers like this

    printf( "How much is %d...
  5. Replies
    1
    Views
    1,086

    simple rand() ques.

    Hi
    Please let me know why we are checking i%5 == 0 .Dont understand that bit .

    #include<stdio.h>
    main()
    {
    int i;
    for (i = 1 ;i <= 20 ;i++)
    {
    printf("%10d", 1 + (rand() % 6));
Results 1 to 5 of 5