© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
נייסוס

❔ help in hw

using System;

public class HelloWorld
{
    public static void Main(string[] args)
    {
         char vote;
         int y=0, t=0, n=0, v=0;
        Console.WriteLine ("if you want y, if not n, if nutral d");
         vote= char.Parse(Console.ReadLine());
        while (vote!='f'){
            v=v++;
        if (vote = 'y')
        y=y++;
        if (vote = 't')
        t=t++;
        if (vote = 'n')
        n=n++;



          vote= char.Parse(Console.ReadLine());
        }
          if (y/v>0.6)
        Console.WriteLine ("הרפורמה תאומץ");
        if (t/v>0.6)
         Console.WriteLine ("הרפורמה לא תאומץ");

    }
}
using System;

public class HelloWorld
{
    public static void Main(string[] args)
    {
         char vote;
         int y=0, t=0, n=0, v=0;
        Console.WriteLine ("if you want y, if not n, if nutral d");
         vote= char.Parse(Console.ReadLine());
        while (vote!='f'){
            v=v++;
        if (vote = 'y')
        y=y++;
        if (vote = 't')
        t=t++;
        if (vote = 'n')
        n=n++;



          vote= char.Parse(Console.ReadLine());
        }
          if (y/v>0.6)
        Console.WriteLine ("הרפורמה תאומץ");
        if (t/v>0.6)
         Console.WriteLine ("הרפורמה לא תאומץ");

    }
}
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ some help in hw
C#CC# / help
3y ago
❔ hw help
C#CC# / help
4y ago
c# hw help
C#CC# / help
5mo ago
❔ c# hw help
C#CC# / help
4y ago