answersLogoWhite

0


Best Answer

using system;

{

public static void main(string[] args)

{

int n;

n=int.parse(console.ReadLine());

if(n%2==0)

console.WriteLine("Even number");

else

console.WriteLine("Odd number");

}

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

There are built in functions in various languages in Visual Studio to check if a number is Even or Odd such as IsOdd() or IsEven(). But in the absence of such built in function, you can find the Modulo 2 of the given number and if the remainder is zero you can surmise that the original number was even. If not it would be odd.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a program in Visual studio To know the number whether its Even or Odd?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you connect java with visual studio?

Unfortunately, you can not use Visual Studio to edit Java. Visual Studio can be used to program: Visual Basic C# C++ ASP.NET Anyways to program Java you can use other programs as Eclipse for Java Developers


Where is Microsoft Visual Studio Tools for Applications 2.0 located?

This program is located in the IDE directory of the Visual Studio directories and varies depending on the version of Visual Studio you have. One example is C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\vsta.exe


Where do you find the applications such as visual basic or visual C plus plus in visual studio 2010 there appears to be no actual applications?

Once you have the Visual Studio program open, go to File->New Project and select the language you want to write your program in. If one or more languages do not appear, you probably didn't choose to have them installed when you installed Visual Studio.


How do you send a visual studio program as an email attachment?

Try to zip it then send as an attachment.


Is Visual Basic included with Visual Studio?

Visual studio is a collection of different language compiler, whereas visual basic is just a single language. Visual studio express edition can be downloaded from www.microsoft.com/express A visual basic programmer uses visual studio to write and compile visual basic programs.


How do you write a C program in visual studio 2012?

Start a new Visual C++ project then begin writing your C code.


What is the latest version of visual studio?

The latest version of Visual Studio is Visual Studio 2008 (v9.0).


Is there a way to program speech recognition in c plus plus with the express edition not the visual studio version?

The express edition's C++ implementation is no different to the visual studio implementation. It is the exact same language.


How much does Visual Studio 2005 Professional cost?

The program Visual Studio 2005 Professional costs over $300 if you buy it online. If you purchase it directly from the Microsoft website then it will cost you close to $800.


What is visual studio 2010 used for?

Microsfot Visual Studio 2010 is a program used to develop applications for a variety of peripherals. For more information, visit the website: http://www.microsoft.com/visualstudio/en-us


What is the difference between Microsoft Visual Studio 2010 Express Edition and Professional Edition?

Microsoft Visual Web Developer focuses on the tools required to develop Web applications and is fully incorporated into Microsoft Visual Studio itself. Microsoft Visual Web Developer Express edition is a separate product that makes use of the same integrated development environment as Microsoft Visual Studio itself, but has a more limited set of language features.


How do you remove winforms dll?

winforms.dll is a process belonging to the Microsoft (R) Visual Studio (R) 2008 program . "It is a Microsoft.ReportViewer.WinForms.dll" "belonging to Microsoft (R) Visual Studio (R) 2008" "from Microsoft Corporation". Determining whether it is a virus or a legitimate Windows DLL depends on the directory location it executes or runs from. You can replace the old version of the dll file with a compatible one.