answersLogoWhite

0


Best Answer

#include<stdio.h>

#include<conio.h>

int main ()

{

int num;

printf("enter the number");

scanf("%d",&num);

if(num<0)

num=(-1)*num;

printf("absolute value=%d",num);

getch();

return 0;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Find the absolute value write a program of a no entered through the keyboard?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

The distance between two cities in km is input through the keyboard write a program to convert and print this distance in meters feet inches and centimeters?

mesh's basic salary is input through the keyboard. his dearness allowance is 40% of basic salarying , and house rent allowance is 20% of basic salaried. write a program to calculate his gross salary


When 25 numbers are entered from the keyboard into an array the number to be searched is entered through the keyboard by user write a program in C to find if number to be searched is present?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int num[25]; int i,j,k=0; for(i=0;i&lt;=24;i++) { printf("Enter numbers : "); scanf("%d",&amp;num[i]); } printf("\nEnter the number to be searched : "); scanf("%d",&amp;j); printf("\nthe is %d",j); for(i=0;i&lt;=24;i++) { if(num[i]%j==0) k=k+1; } printf("\nIt is repeated %d times."k); }


Any integer is input through the keyboard write a c program to find out whether it is an odd number or even number?

printf(\n "ENTER THE NUMBER\t"); scanf{"%d",&amp;a); while(a!=0); { r=a%2; if(r==0) printf("\n\n THE NUMBER IS EVEN \t"); else printf("\n\n THE NUMBER IS ODD \t"); printf ("\n ENTER THE NUMBER \t"); scanf("%d",&amp;a); } getch(); }


An instruction book or program that takes users through a prescribed series of steps to learn a complex program is called a?

An instruction book or program that takes users through a prescribed series of steps to learn a complex program is called a tutorial.


Why access keys are use in visual basic?

We use these to make ur project respond through the keyboard

Related questions

Writa a program to print a number in word eg if 972 is entered through the keyboard that should print nine seven two?

nine seven two


Explain wys in which data can be entered into a computer?

Through any external device. A keyboard, a mouse, a flash drive, a cd etc


What is changing data before or after it is entered into a computer?

why automatic type data when type through keyboard in computer


Which keyboard key when pressed rotates through relative mixed and absolute cell references in an Excel worksheet?

The F4 key does that, if you press it while typing in the cell reference.


The distance between two cities in km is input through the keyboard write a program to convert and print this distance in meters feet inches and centimeters?

mesh's basic salary is input through the keyboard. his dearness allowance is 40% of basic salarying , and house rent allowance is 20% of basic salaried. write a program to calculate his gross salary


What is keyboard entry and direct entry?

Keyboard entry is when data is entered through a keyboard whereas Direct entry does not require data to be keyed by someone. Instead the direct entry devices create machine-readable data and feed it directly into the CPU. This reduces the possibility of human error and is an economical means of data entry.


When 25 numbers are entered from the keyboard into an array the number to be searched is entered through the keyboard by user write a program in C to find if number to be searched is present?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int num[25]; int i,j,k=0; for(i=0;i&lt;=24;i++) { printf("Enter numbers : "); scanf("%d",&amp;num[i]); } printf("\nEnter the number to be searched : "); scanf("%d",&amp;j); printf("\nthe is %d",j); for(i=0;i&lt;=24;i++) { if(num[i]%j==0) k=k+1; } printf("\nIt is repeated %d times."k); }


Light entered Egyptian temples through what kind of window?

Light entered Egyptian temples through a CLERESTORYwindow.


What is the function of a keyboard to the computer-and-part-of-keyboard?

the keyboard enable the user to communicate with the computer through typying of(input of data).


Explain how computers are able to take the words entered on a keyboard and translate them into digital information?

A keyboard is an input device. Below the keys is a key matrix, or circuit board. When you press a key you complete the circuit for that key. They keyboard then sends the information either through a wire or wirelessly to the computer. The computer then takes the information and decides how to use it. Depending on the Operating system or running applications the computer decides how to use the information.


How do you fill snap form for MBA?

through keyboard


Can sound travel through absolute zero temperature?

No. Sound has to travel through moving atoms and absolute zero (-273.15 Celsius) has no moving atoms.