Namespace parity {Class program { static void Main (string[] args) { Console.Write ("Please enter an integer:"); int A = Int. Parse (Console.ReadLine ()); Double B =a% 2; if (B = = 0) { Console.WriteLine ("You have entered an even number"); } if (B = = 1) { Console.WriteLine ("You have entered an odd number"); } Console.ReadLine ();}}}
namespace Wedding Time {class Program {static void Main (string[] args) {Console.WriteLine ("What is your living expenses for a year (million):"); Double A = double. Parse (Console.ReadLine ()); Console.WriteLine ("What is your annual salary (million)"); Double b = Double. Parse (Console.ReadLine ()); Console.WriteLine ("Please Enter your gender"); int c = Int. Parse (Console.ReadLine ()); Double d = 100/(b-a) +2015; if (d >= && D <= 2030) {Console.Write ("Good! Your wedding time is "+ D"; } else {if (d > 2030 && D < 2040) {Co Nsole. WriteLine ("Hey! You get married after 45 "); } else {Console.WriteLine ("Dude, don't think about getting married, start feeding yourself ....) Mortgage, car loan, "); }console.readline (); } } }}
The second one is the wrong place I want the teacher to come forward
To calculate your marriage time