i m new to Programming. Please help me solving this Question .. thanks .. i m doing this like ... having some logical error
Assuming the ocean’s level is currently rising at about 1.5 millimeters per year; write a program that displays a table
showing the number of millimeters that the ocean will have risen each year for the next 25 years.
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { double rate = 1.55; for (double year = 1; year <= 25; year++) { rate = rate * year; Console.WriteLine(rate); } } } }





Reply With Quote