usama khan

usama khan

  • NA
  • 6
  • 4.7k

Geeting "0" solution of an equation :(

Jan 22 2014 7:59 PM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter Year of Construction:");
int Year = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Span of the Bridge:");
int Span = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the Slab thickness:");
int Thickness = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter Width of the Bridge:");
int Width = Convert.ToInt32(Console.ReadLine());
if (Year < 1930)
{
float Thickness1 = (9 / 10) * Thickness;
Console.WriteLine(Thickness1);
Console.ReadLine();
}
}
}
}
i dont know why its giving 0 solution of Thickness1 Variable. please help. .i am newbie. sorry if it looks stupid.

Answers (3)