Computer Science, asked by Narain4095, 7 months ago

Int main() { int x; x=10,20,30; printf("%d",x); return 0; }

Answers

Answered by harshitrai3768
1

Answer:

ans is 10

Explanation:

Answered by ishwaryam062001
0

Answer:

The output for the given code is 10

Explanation:

From the above question,

They have given :

The main purpose of using variables in a program is to store data and manipulate them according to the user's requirements. Variables are declared using a data type, followed by the name of the variable and an optional assignment operator and a value. In the above program, an integer variable, x is declared and the value 10 is assigned to it using the assignment operator '='.

The value of the variable x is then printed using the printf() function.

Algorithm :

Step 1: Start the program.

Step 2: Declare an integer variable, x.

Step 3: Assign the value 10 to the variable x.

Step 4: Print the value of x.

Step 5: End the program.

#include<stdio.h>

int main()

{

int x;

x=10;

printf("%d",x);

return 0;

}

Output

10

For more such related questions : https://brainly.in/question/49717379

#SPJ3

Similar questions