آموزش های کاربردی در دنیا رایانه و وب

۵ مطلب در آبان ۱۳۹۴ ثبت شده است

حل مربع جادویی به روش دیگر...با ما باشید

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            {
    int[,]a=new int[10,10];
     int i,j,n,k=1;
   

سوال : برنامه ای بنویسید که کلاس مستطیل ، مربع ، دایره ، سه گوش را محاسبه کند...(C#)


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
    class CalcAvgPerc //Calculate the Average marks and percentage for students 
    {
        public float length, breadth, radius, side, hieght, breadthfortriangle;
        static void Main(string[] args)
        {
            CalcAvgPerc a = new CalcAvgPerc();
            a.Rectangle();
            a.Circle();
            a.Square();
            a.Triangle();
            Console.ReadKey();
        }

به دست آوردن مجموع و میانگین

سوال : برنامه ای بنویسید که پنج عدد گرفته ، مجموع و میانگین را چاپ کند...(C#)



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tamrin_2
{
    class Program
    {
        static void Main(string[] args)
        {
           
            int sum = 0;

بدست آوردن MAX

سوال : برنامه ای بنویسید که سه عدد را از ورودی گرفته و عدد بزرگتر را چاپ کند...(C#)


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tamrin_1
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, max;

مربع جادویی

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Magic_Square
{
    class Program
    {
        static void Main(string[] args)
        {

            int z, x, i, j, k, nsqr, n, range, ix;
            int[,] a1 = new int[100, 100];
            int[,] a2 = new int[100, 100];
            int[,] matrix = new int[100, 100];