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
karli hujoova
NA
4
3.2k
would anyone help?
Mar 11 2013 1:23 PM
would anyone help me with my c# program if i would post it here?
the problem is that my c# calculation answer must say is it kevad,suvi,sügis or talv in my program,the program is here
int vastus1, vastus2, vastus3;
do
{
Console.WriteLine("Sisesta esimene arv vahemikus 10-20");
vastus1 = int.Parse(Console.ReadLine());
Console.WriteLine("sisesta teine arv vahemikus 20-32");
vastus2 = int.Parse(Console.ReadLine());
Console.WriteLine("Vastus {0}", vastus2 - vastus1);
string tekst1 = Console.ReadLine();
vastus3 = int.Parse(tekst1);
}
while ((vastus1 < 1 || vastus2 < 12));
if (vastus3 <= 3 && vastus3 <= 5)
{
Console.WriteLine("On kevad");
{
if (vastus3 <= 6 && vastus3 <= 8)
{
Console.WriteLine("on suvi");
}
if (vastus3 <= 9 && vastus3 <= 11)
{
Console.WriteLine("on sügis");
}
if (vastus3 <= 12)
if (vastus3 <= 1 && vastus3 <= 2)
{
Console.WriteLine("on talv");
}
}
}
}
}
}
Reply
Answers (
4
)
manuplate string in a specific tag in html file
Making a tetris clone, what to do about the grid?