Computer Science, asked by aarnak0711, 2 days ago

Write a program to input name, marks in 2 subjects of a student. Calculate the total marks and display name and total marks of the student.

Answers

Answered by prateekpro5
1

Answer:

string name "Rajesh"

Console.WriteLine("Name is " + Name)

int scored m 50

int total m 60

Console.WriteLine("Rajesh got" + scored m + "out of " + total m + "in science)

int scored ma 28

int total ma 60

Console.WriteLine("Rajesh got" + scored ma + "out of " + total ma + "in physics)

Explanation:

i wrote this in the language of C# if i did anything wrong kindly correct or if it is correct the mark it as brainliest

Similar questions