Computer Science, asked by chayat1492, 1 year ago

Write the syntax to accept an integral value from the user from console

Answers

Answered by priyanshu805140
3

Answer:

Write down the syntax with reference to Java Programming: To accept an integral value 'p' through Stream class. To accept a fractional value (float) 'm' through Scanner class. To accept a character 'd' through Stream class. To accept a fractional value 'n' in double data type through Stream class.

Explanation:

PLEASE MARK AS BRAINLIST AND FOLLOW ME

Answered by codiepienagoya
2

Following are the Syntax for user input in C:

Syntax:

scanf(“%X”, &variableOfXType);

Explanation:

  • In C language programming to user input, we use scanf method. It is an inbuilt method, this method helps you to accept standard data, usually the keyboards.
  • This method calculates the numeric value and added by the consumer and sets the value.
  • This format uses the percent operator (%) with X. where is X (d, c, f, and lf), it is used to store type of value, and (&) is used to converter the data type with the variable.
  • It tells the compiler to modify the true value of the variable include in the memory.

Learn more:

  • User- input: https://brainly.in/question/14318354
Similar questions