C# Saved Program: ferrous-terrain

facebook share

Here's the online compiler accompanied with IDE at your service. This is a saved code by one of our users. Try it out or save your own from the IDE page and don't forget to leave a feedback. You can find that at the bottom of the page.

using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Threading.Tasks;

namespace TheOnlineCompiler
    class Program 
        static void Main() 
            string str = "Yo BC, ye dekh - warning ke jagah, error aa rahi hai";
            double p = 120000.0;
    		double r = 8.0;
    		int n = 25;
    		int inc = 120000;
    		double am = 0.0;
    		for(int i = 0; i<n; i++){
    			am = p * (Math.Pow((1 + r/100.0),1));
    			p = inc+am;
    			inc += 120000;


Press the execute button or CTRL + enter to run code.