using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace posneg
{
class
positive
{
int
a;
public
void read(int
x)
{
a = x;
}
public
void find()
{
if
(a > 0)
{
Console.WriteLine("Postive
Number");
}
else
{
Console.WriteLine("Negative
Number");
}
}
}
class
Program
{
static
void Main(string[]
args)
{
int
n;
Console.WriteLine("Enter Number ");
n = Int32.Parse(Console.ReadLine());
positive
obj=new positive();
obj.read(n);
obj.find();
Console.ReadKey();
}
}
}
|
|
|
Computer Science :: 11th/12th, Computer Engineering :: Degree/Diploma, Coding Concept ( C, C++ & JAVA Programming, JDBC Concept, DBMS - SQL Concept, Data Structure, Communication & Network Concept.
Saturday, November 7, 2015
C# DECISION BASED PROGRAMM
Subscribe to:
Post Comments (Atom)
Make Code Arcade : Area of Circle
Make Code Arcade : Area of Circle Editor Simulator
-
COMPUTER TERMINOLOGY 1) TCP/IP - Transmission Control Protocol/ Internet Protocol. 2) HTTP...
-
Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...
-
Check whether the number is negative or positive after taking a number as input from the user. TextWindow . WriteLine ( "Ente...
-
1) What is Make Code Arcade? Answer: Make Code Arcade is a coding platform that enables to create block – based program. 2) How ...
-
Programmingway@Eklavya Technosys!: New Year's 2025 | Happiness & Healthier's Life Sty... : भारत कई धर्मों का संगम है, हिंदू, मुस...

No comments:
Post a Comment