CrazyDiver

Cycles/Powers[D]

Dec 12th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.42 KB | None | 0 0
  1. procedure CountSqrsOfNumsSet(in1,in2:integer);
  2. var i:integer;
  3. begin
  4.   for i:=in1 to in2 do              //count times to square and counts to square
  5.       Writeln(i,'*',i,'=',i*i);     //write in line i^2
  6. end;
  7. var a,b,i:integer;
  8. begin
  9.   read(a,b);                        //read nums
  10.   CountSqrsOfNumsSet(a,b);          
  11. end.
  12.  
  13. //x^2 = x squared = x to the power of 2 = x to the 2-nd power
  14. //x^y = x to the power of y
Add Comment
Please, Sign In to add comment