This blog is under construction

Monday, 30 April 2012

fmod example in C

Header file:
    math.h

Synopsis:
     double fmod(double x, double y);

Description:
     It returns the floating-point remainder of x/y.


fmod function C example:


  #include<stdio.h>
  #include<math.h>
  int main() {
        double x, y, res;
        printf("Enter the value for x and y:\n");
        scanf("%lf%lf", &x, &y);
        res = fmod(x,y);
        printf("Remainder:%lf\n", res);
        return 0;
  }



  Output:
  jp@jp-VirtualBox:~/cpgms/math$ ./a.out
  Enter the value for x and y:
  15  4
  Remainder: 3.000000


5 comments:

  1. Hacking issues and quite daunting and are like a nightmare. Because of hacking errors, you not only lose the access to your account but your personal information also gets at stake. Under such severe situations, you can dial Binance support number which is always approachable and the fastest medium to get instant and Binance Support Number test results from the experts who have hand in handling the Binance issues in the least possible time. You can contact them to avail solutions related to queries and troubles immediately.

    ReplyDelete
  2. Are you fed up of login issues exists in Blockchain account on regular basis? Do you have easy to apply and handy solution to resolve this error? Users when encountering such errors, they get perplexed and fail to understand what to do next, therefore, under such situation, reaching out the experts is the right decision. Dial Blockchain support number and avail the best Blockchain Support NUmber solutions to the team of professionals throughout the whole year. You will get solution related to all type of Blockchain queries in no time. Connect with the team to avail results.

    ReplyDelete
  3. Hacking issues and quite daunting and are like a nightmare. Because of hacking errors, you not only lose the access to your account but your personal information also gets at stake. Under such severe situations, you can dial Libra Coin support number which is always approachable and the fastest medium to get instant and test results from the experts who have hand in Libra Support Number handling the Libra Coin issues in the least possible time. You can contact them to avail solutions related to queries and troubles immediately.

    ReplyDelete
  4. I cling on to listening to the reports speak about getting free online grant applications so I have been looking around for the most excellent site to get one. Could you advise me please, where could i find some? frontend entwickler berlin


    ReplyDelete
  5. Do you need Finance? Are you looking for Finance? Are you looking for finance to enlarge your business? We help individuals and companies to obtain finance for business expanding and to setup a new business ranging any amount. Get finance at affordable interest rate of 3%, Do you need this finance for business and to clear your bills? Then send us an email now for more information contact us now via (financialserviceoffer876@gmail.com) whats-App +918929509036 Dr James Eric Finance Pvt Ltd Thanks

    ReplyDelete