usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespacejudging weight in the light of the {classProgram {Static voidMain (string[] args) {Console.Write ("Please enter your gender:"); strings =Console.ReadLine (); Console.Write ("Please enter your height (cm):"); DoubleA =int. Parse (Console.ReadLine ()); Console.Write ("Please enter your weight (kg):"); Doubleb =int. Parse (Console.ReadLine ()); if(s = ="male") { Doublec = b-a + -; if(c <=3&& C >=-3) {Console.WriteLine ("your weight standard."); } Else if(C <-3) {Console.WriteLine ("you weigh thin ."); } Else{Console.WriteLine ("you're overweight."); } } Else if(s = ="female")//you need to add else here, otherwise it will run display: wrong input { DoubleD = b-a + the; if(d <=3&& D >=-3) {Console.WriteLine ("your weight standard."); } if(D <-3) {Console.WriteLine ("you weigh thin ."); } Else{Console.WriteLine ("you're overweight."); } } Else{Console.WriteLine ("wrong input"); } console.readline (); } }}
Judging weight bias