Q8 Write a program to find the absolute value of a number entered through the keyboard

Program: 76

Write a c program to find the absolute value of a number entered through the keyboard.

Output:

 Enter a number: -12
 The absolute value of -12 is 12

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

One thought on “Q8 Write a program to find the absolute value of a number entered through the keyboard

  • January 18, 2022 at 12:56 pm
    Permalink

    if(num > n) right
    check your code

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.