Sanfoundry Sourcecode
Sanfoundry Sourcecode
*/
using System;
class pgm
width = Convert.ToInt32(Console.ReadLine());
Console.ReadLine();
}
-----------------------------------------------------------------------------
--
/*
*/
using System;
public int x;
public int y;
class SealedTest
{
sc.x = 100;
sc.y = 180;
Console.ReadLine();
}
-----------------------------------------------------------------------------
--
/*
*/
using System;
class sample
int data;
void insert(object x)
data = (int)x * 5;
object delete()
data=0;
return (object)data;
Console.ReadLine();
}
-----------------------------------------------------------------------------
--
/*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PrimeNumber
class Program
if (i != j && i % j == 0)
isPrime = false;
break;
if (isPrime)
Console.Write("\t" +i);
isPrime = true;
Console.ReadKey();
}
-----------------------------------------------------------------------------
--
/*
* if it is Positive
*/
using System;
class program
if (number > 0)
Console.WriteLine("Number is positive");
}
else if (number == 0)
Console.WriteLine("Number is 0");
else
Console.WriteLine("Number is negative");
Console.ReadLine();