bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

luc013.c (496B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* Write a program to find the absolute value
      8 of a number entered through the keyboard. */
      9 /* Let Us C, Chap- 3, Page - 53, Qn No.: f(d) */
     10 
     11 #include <stdio.h>
     12 #include <math.h>
     13 int main()
     14 {
     15     double num;
     16     printf("Enter the number : ");
     17     scanf("%lf", &num);
     18     num = abs(num);
     19     printf("\nAbsolute value of the input is : %g", num);
     20     return 0;
     21 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror