Jump to content

Input1'deki Değeri Alıp Input2 Ile Çarpma


prototype
 Share

Recommended Posts

Arkadaşlar başlıkta belirttiğim gibi input1'deki sayı değerini alıp input2'deki sayı değeri ile çarpmak istiyorum.

Örneğin input1 ürün adedi input2'de ürün fiyatı olsun. Girilen ürün fiyatı ile ürün adedini çarpıp sonucu labele aktarsın.

a x b = c şeklinde..

Sitede olan hesap makinesi örneklerini inceledim ancak onlar tek input üzerinden çalışıyor benim yapmak istediğim 2 inputtan olsun.

Bir ön çalışma var ancak üzerinde hiçbir kodlama yok malesef :(

Proje;
http://www.fileden.com/files/2012/6/29/3321550//carpma.rar

Link to comment
Share on other sites

[color="#8B0000"]Çarpma işlemi için x kullanmıyoruz. * işareti ile çarpma işlemi yapılır.

Toplam = Fiyat*Adet;

şeklinde.

Projene uyarlayacak olursak ;
[codebox]
fiyat = Input.GetText("fiyat");
adet = Input.GetText("adet");
Label.SetText("Label3", "Sonuç:"..fiyat*adet);
[/codebox]
[/color]

Edited by DivaneTR
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...