Computer Science, asked by satyam10nov2007, 7 months ago

5.
Saina coded the following program and executed it to find a syntax, logical and runtime error.
Help her debug the program for an error-free execution.
(Hint: Division by zero causes a runtime error in the program.]
//Program to demonstrate errors.
public class Errors Example
(
public static void main(String args[])
int sum:
int k = 10
sum=k-sum:
sum = (sum - 5)/(sum - 10);
}
}​

Answers

Answered by Anonymous
0

Answer:

In linguistics, syntax (/ˈsɪntæks/) is the set of rules, principles, and processes that govern the structure of sentences (sentence structure) in a given language, usually including word order. The term syntax is also used to refer to the study of such principles and processes

Similar questions