0% found this document useful (0 votes)
52 views5 pages

Notes

The document describes how to write a C# console application to get student name and 3 subject marks for 5 students, calculate the total average and grade for each student. It includes functions to calculate average without arguments, call the average function from the main function, and return the average value. It also mentions writing a function to calculate average of 3 subjects and pass the value back to the main function using concepts of swapping.

Uploaded by

devil4400
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views5 pages

Notes

The document describes how to write a C# console application to get student name and 3 subject marks for 5 students, calculate the total average and grade for each student. It includes functions to calculate average without arguments, call the average function from the main function, and return the average value. It also mentions writing a function to calculate average of 3 subjects and pass the value back to the main function using concepts of swapping.

Uploaded by

devil4400
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

First excise

Write a console spplicstion to get student name and 3 marks in any subjects and calculate total average,
result , grade fro 5 student

Avg/grade

>85 =A

75 to 85=B

65 to 75 = C

50 to 65 = D

< 50 = U
Function

Without arguments function

Submain()

Call add()

Console.readline()

End sub

Public function add()

Return(0)

End fuction
Write a function to find avarege of & subject and passs the value through main function
Swaping conept

The out put is

You might also like