Rabu, 04 Januari 2012

penjumlahan dan pengkalian visual setudio C++


programing fisual setudio C++ (penjumlahan dam pengkalian)











using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Penjumlahan(hamdi.musthofa)
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            int clrscr();
double r,l;
cout<<"LUAS LINGKARAN\n";
cout<<"JARI-JARI = ";
cin>>r,
l=3.14*r*r,
cout<<"lUAS LINGKARAN = "<<l<<endl;
getch();

            textBox3.Text = Convert.ToString(z);
        }

     

Tidak ada komentar:

Posting Komentar