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

User Blackessej
by
8.3k points

1 Answer

11 votes

Answer:

int x = 10;

Step-by-step explanation:

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

User Pehrs
by
7.5k points