delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/04/14:56:12

From: "Drake matthews" <cyberdrake AT icrazy DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: exponment
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <Dbif6.155$dB3.33715@sapphire.mtt.net>
Date: Sun, 04 Feb 2001 19:37:07 GMT
NNTP-Posting-Host: 142.177.232.63
X-Complaints-To: abuse AT mpoweredpc DOT net
X-Trace: sapphire.mtt.net 981315427 142.177.232.63 (Sun, 04 Feb 2001 15:37:07 AST)
NNTP-Posting-Date: Sun, 04 Feb 2001 15:37:07 AST
Organization: MPowered-Subscriber
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

#include <iostream.h>
#include <conio.h>


int main()
{
  clrscr ();

int  intpow;
int x, int y;



  cout << "This program will compute any base value raised to an exponent
value" << endl;

  cout << "Enter a base value:" << endl;
  cin >> x;
cout >> "Enter an exponment value:" << endl;
cin >> y;
intpow=exp((log(y)*x);
 { if (y == 0) return 1; return x * intpow (x, y - 1); }


I'm have trouble writing this program could someone help me.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019