How do you write a c# application program that ask three numbers and prints the average value?
NB. the program must have only two console.writeline statements.
1
Expert's answer
2012-09-07T11:00:23-0400
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Answer14360
{
class Program
{
static void Main(string[] args)
{
int _count=0;
int _average=0;
do
{
_count++;
Console.WriteLine("Enter {0}-st number ", _count);
Comments
You're welcome. We are glad to be helpful. If you really liked our service please press like-button beside answer field. Thank you!
wow it working thanks a lot
Leave a comment