21 Aralık 2013 Cumartesi

C # PROGRAMI İLE ÖRNEK SORULAR-30

(çarpım tablosu)
using System;
using System.Collections.Generic;
using System.Text;
//CAFER KORKMAZ
//GİRİLEN SAYININ ÇARPIM TABLOSUNU VERİR.
//13.03.2008

namespace carpımT
{
    class Program
    {
        static void Main(string[] args)
        {
            int x, sayi;
            Console.WriteLine("\n çarpım tablosu oluşturulacak sayıyı giriniz:\n");
            sayi = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("\n ÇARPIM TABLOSU:   \n", sayi);

            for (int a = 1; a <= 10; a++)
            {

                x = sayi * a;
                Console.WriteLine(sayi*a);
              
            }
           
          
           
            Console.ReadLine();
        }
    }

}

Hiç yorum yok: