Search:

Type: Posts; User: Axiom

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,456

    Loop a block of code

    Hi,

    I am trying to get the program to request and convert the time in seconds 3 times. If i use and IF statement ie IF(time>) then "execute code" it makes the code look really long and was...
  2. Replies
    12
    Views
    1,701

    i noticed that changing to this ensures that you...

    i noticed that changing to this ensures that you can only enter 3 sig figs...thanks once again!!

    scanf( "%3f %2f", &sum);
  3. Replies
    12
    Views
    1,701

    thank you!

    thank you!
  4. Replies
    12
    Views
    1,701

    thanks...any help right now is really really...

    thanks...any help right now is really really appreciated!
  5. Replies
    12
    Views
    1,701

    i see i did addition instead... is there...

    i see i did addition instead...

    is there something i need to put after this to do the actual cal? float result = sum * z;

    sorry if im sounding thick but i just picked this all up a few days...
  6. Replies
    12
    Views
    1,701

    how would i ensure it is exactly in the correct...

    how would i ensure it is exactly in the correct format though and then join them to be multiplied by 10%?




    #include <stdio.h>

    float sum =-1;
    const double z =1.1;
  7. Replies
    12
    Views
    1,701

    is it better to seperate the before and after...

    is it better to seperate the before and after decimals so having an extra variable y so that i can have scanf %3d, &x and then scanf %2d, &y ?
  8. Replies
    12
    Views
    1,701

    No idea for a title..really stuck!!

    Hi,

    Sorry i could not think of a title, but my problem is this. I need to write a program which reads a sum of money in the form of ddd.dd, so 456.89 is ok and then it increases it by 10% and...
  9. Thread: Program Display

    by Axiom
    Replies
    3
    Views
    1,191

    I have just figured it...i use the getchar();...

    I have just figured it...i use the getchar(); twice since my program requires 2 outputs


    many thanks
  10. Thread: Program Display

    by Axiom
    Replies
    3
    Views
    1,191

    Program Display

    Hi,

    I am using the Dev-C++ compiler and editor and have noticed that when i try to run a program, the results flash so fast i cannot see it? For example, this program to compute the alternative in...
Results 1 to 10 of 10