Home   Easy-Code    Forum  Updater 
Twitter Facebook



Program to find x power n value using pascal

Critics Rating:

Users Rating:

(*PROGRAM TO FIND X POWER N VALUE*)

program power;

uses crt;

var

x,n,i,y:integer;

begin

clrscr;

writeln("ENTER THE BASE NUNBER");

read(x);

writeln("ENTER THE POWER NUMBER");

read(n);

y:=x;

for i:=1 to (n-1) do

y:=y*x;

writeln(x," TO THE POWER OF ",n," IS ",y);

end.









Courtesy, Source, References & Regards: Kishore AVGK

While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright@2009-2011 by KuGuNi.com. All Rights Reserved.