Computer Science, asked by biswastanusree2006, 10 months ago

Woute a program using counter tosca
members and find the sun and average leven
numbers only​

Answers

Answered by rushilansari
0

Answer:

using System;  

public class Exercise2  

{  

   public static void Main()  

{

   int  j, sum = 0;

Console.Write("\n\n");

   Console.Write("Find the sum of first 10 natural numbers:\n");

   Console.Write("----------------------------------------------");

   Console.Write("\n\n");

 

   Console.Write("The first 10 natural number are :\n");

    for (j = 1; j <= 10; j++)

   {

       sum = sum + j;

       Console.Write("{0} ",j);    

   }

   Console.Write("\nThe Sum is : {0}\n", sum);

 }

}

IF HELPS PLEASE MARK IT THE BRAINLIEST

Similar questions