TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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.
Reply
Answers (
3
)
serial com port communication through scanner using C#
i want to make a mathematics based application?