Programlama | Programlama Dilleri | C Programlama Dili |C++

Hata
  • XML Parsing Error at 1:82. Error 9: Invalid character
Anasayfa Programlama Pascal Koordinatlar? Verilen Do?ru Denklemini Bulma
´╗┐

Koordinatlar? Verilen Do?ru Denklemini Bulma

Pascal programlama dilinde yaz?lm?? olan bu program koordinat noktalar? verilen do?runun denklemini vermektedir. Kullan?c?n?n girdi?i koordinatlara g÷re Řretilen do?ru denklemi konsola yazd?r?lmaktad?r.

Program Kodu:

  1. uses crt;
  2. var
  3. x1,y1,x2,y2,x:integer;
  4. m,y:real;
  5.  
  6. procedure denklem;
  7. begin
  8. m:=(y2-y1)/(x2-x1);
  9. y:=m*(x-x1)+y1;
  10.  
  11.  
  12.  
  13. begin
  14. clrscr;
  15. writeln('?lk noktanin koordinatlarini giriniz.. [x1,y1]: ');
  16. read(x1); read(y1);
  17. writeln('?kinci noktanin koordinatlarini giriniz.. [x2,y2]: ');
  18. read(x2); read(y2);
  19. denklem;
  20. readln;
  21. writeln('Dogru denklemi.. Y=',m,'(x-',x1,')+',y1);
  22. readln;
  23.  
  24.  

Yorumlar (0)
Sadece kay─▒tl─▒ kullan─▒c─▒lar yorum yazabilir!
 
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.