Search:

Type: Posts; User: ammar555

Search: Search took 0.01 seconds.

  1. I found it thanks, here is my code for those who...

    I found it thanks, here is my code for those who will need it in the future.



    int main()

    {

    float cost; //Define the cost as float
    float paid; //Define payments as float
  2. Here is my code #include ...

    Here is my code




    #include <stdio.h>
    #include <stdlib.h>


    const int QUARTER = 25;
  3. I'm trying to make a program that calculates the...

    I'm trying to make a program that calculates the change , like below.

    Total Cost: 2.23
    Paid: 3.00

    Results: $.77

    3 quarters
    0 dimes
    0 nickels
  4. Here is my code, but it doesn't quit work. ...

    Here is my code, but it doesn't quit work.


    int main()

    {

    float cost; //Define the cost as float
    float paid; //Define payments as float
    float sum;
  5. How to get a value Before/After a decimal point in C ??

    Hi,

    I'm new to C, I would like to achieve the following.

    get two numbers after the decimal point

    23.456 -> 0.45
    11.235224 -> 0.23

    and get all the numbers before the decimal point
Results 1 to 5 of 5