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 }