How to make an average arithmetic of numbers (2,5) using c# language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to make an average arithmetic of numbers (2,5) using c# language?

i need the full program

16th Mar 2018, 1:42 PM
Majdy R
Majdy R - avatar
1 Answer
+ 1
if you want the average of some numbers, you add all the numbers together and then divide by the amount of numbers you added for example: //code starts here int n1 = 2; int n2 = 5; var result = (n1 + n2) / 2;
16th Apr 2018, 11:13 PM
MyChade
MyChade - avatar