Search:

Type: Posts; User: PrashantDhamija

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    5,137

    There are many possible solutions for this. 1)...

    There are many possible solutions for this.

    1) You can use fflush(stdin). This is not recommended though.
    2) You can use getche() instead of scanf.
    Example:
    gender=getche();
    3). Or...
  2. Replies
    12
    Views
    1,861

    Give some initial value greater than i, that is...

    Give some initial value greater than i, that is greater than 1 to split so that loop can be initialized. Change x to any value>i.


    int i,split=x,n_split;
    float km,n_km;
    clrscr();


    ...
Results 1 to 2 of 2