Assign your Term1 Marks of English to variable MARK1 and Term2 Marks of English to variable MARK2. Write a program to store total marks in variable Total and display the result.
pls tell me this answer i will give u 20 points
Answers
Answered by
3
Answer:
QBASIC::
CLS
INPUT "Marks in term 1:", MARK1
INPUT "Marks in term 2:", MARK2
LET Total = MARK1 + MARK2
PRINT Total
END
JAVA::
import java.util.Scanner;
public class Brainly{
public static void main(String [] args) {
Scanner sc = new Scanner(System.in);
int MARK1 = sc.nextInt();
int MARK2 = sc.nextInt();
int Total = MARK1 + MARK2;
System.out.println(Total);
}
}
PYTHON::
MARK1 = int(input())
MARK2 = int(input())
Total = MARK1 + MARK2
print(Total)
Similar questions