Forgotten password

Language

Bulgarian    English

Advertisements




Report a bug !
Add search function to you browser

Powered by PHP Powered by MySQL
Pascal емулатор
1 member(s) online
Size control Print  Language: Pascal

Examples://Code arrange


To solve the problem you should shift the code with your mouse to end up with working solution.

Problem:
Write down a program that puts on the screen the table with the values of the functions sinx and cosx in the interval (0,1) with step 0.005


  • x := 0;
  • begin
  • end
  • writeln(' x ', ' sin(x) ', ' cos(x) ');
  • var x : real;
  • write(sin(x):11:4);
  • begin
  • x := x + 0.05
  • while x<=1 do
  • writeln('==================================');
  • end.
  • writeln(cos(x):12:4);
  • write(x:8:4);