erdem_fb_54 Posted October 22, 2011 Share Posted October 22, 2011 program tamkare; var k,l,m,n:integer; begin write('k sayisini gir'); readln (k); l:=sqrt(k);m:=trunc(l);n:=sqr(m); if (k=n) then writeln ('Bu Sayi Tam Karedir') else writeln ('Bu sayi Tam Kare Degildir'); readln; end. burda sqrt(k)'dan sonraki noktalı virgülde hata veriyo neden olabilir acaba? Quote Link to comment Share on other sites More sharing options...
tenekecezve Posted October 22, 2011 Share Posted October 22, 2011 Değişkeni integer yapma real falan yap... Karekök alacağın için tam sayı olmaz... Quote Link to comment Share on other sites More sharing options...
erdem_fb_54 Posted October 22, 2011 Author Share Posted October 22, 2011 Tamam hocam oldu sağol yardımın için 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.