which statement is used to take s value from the user and store it in a variable?
Answers
Answered by
0
Answer:
You didn't specify the language so I'm telling the input statement in the languages I know-
In Java-
import java.util.Scanner;
public class Myapplication{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
System.out.println("enter:");
int a = in.nextInt();
System.out.println("Number is= " + a);
}
}
In Python-
a = input("Please enter a number: ")
print("Number is: "a)
*The Words which are underlined are the main part of taking input
Similar questions