prototype Posted August 7, 2012 Share Posted August 7, 2012 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 Quote Link to comment Share on other sites More sharing options...
DivaneTR Posted August 7, 2012 Share Posted August 7, 2012 (edited) [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 August 7, 2012 by DivaneTR Quote Link to comment Share on other sites More sharing options...
KintaRo Posted August 10, 2012 Share Posted August 10, 2012 String.ToNumber() nerde? nasıl alışırsanız öyle gider, dikkat edin. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.