asked 27.3k views
22 votes
Write a statement to declare a variable x with data type int and initialise with the value 10​

1 Answer

11 votes

Answer:

int x = 10;

Step-by-step explanation:

This would work in many languages (C/C++/C#/Java).

answered
User Pehrs
by
8.0k points