Computer Science, asked by Priyam6685, 1 year ago

Fix the errors in the following code: input ("Enter a number: ") print (num * 8) '''

Answers

Answered by nithyaaa
0
Using C programming language

{
int num; // to be entered by the user

printf(" Enter a number");
scanf("%d", &num);

printf("%d", num * 8 );
}
if this helps you pleasevmark me as brainliest
Answered by aqibkincsem
2

"The given code is written in C programming language and therefore, to make it work the following changes must be made.

{

 int num = 5;

printf (“Enter a Number: ”);

printf ( num * 8);

}

The code mentioned above is a standard C# code which is used to multiply the given integer, in this case, 5, with 8.

To enter a user-defined integer, you must introduce a scanf statement. However, it is not necessary in this case and can be avoided."

Similar questions