ViewBag.Title = "Home Page";
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<div style="background-color:lightblue">
//string[] pic = Directory.GetFiles(@"C:\D Drive\Udemy\Assignment 2\Currency Denomination\Currency Denomination\Images");
//for(int count=0;count<pic.Length;count++)
int[] Note = new int[] { 2000, 500, 200, 100, 50, 20, 10, 5, 1 };
int[] Notecount = new int[9];
for (int i = 0; i < 9; i++)
if (ViewBag.amount1 >= Note[i])
Notecount[i] = ViewBag.amount1 / Note[i];
ViewBag.amount1 = ViewBag.amount1 - Notecount[i] * Note[i];
<table class="table table-striped" style="width:25%;margin-top:2%;margin-left:2%">
<caption class="text-center"> Currency Denomination </caption>
@for (int i = 0; i < 9; i++)
//ViewBag.finalamount = Note[i] + " : " + Notecount[i];
<td>@(Notecount[i] * Note[i]) </td>