How to format a number as currency:

<%

dim num

num ='1234'

document.write(FormatCurrency(num))

%>

How to format a number as currency:

<%

dim num

num ='1234'

document.write(FormatCurrency(num))

%>

#include <iostream>

#include <cstdio>

#include <cstdlib>

#include <math.h>

using namespace std;

int main()

{

float a;

float b;

float c;

cout << "welcome to the quadratic formula solver! n" ;

cout << "enter a " ;

cin >> a ;

cout << "enter b " ;

cin >> b ;

cout << "enter c " ;

cin >> c ;

float bsquare = b * b;

float twoa = 2 * a;

float fourac = 4 * a * c;

float oppositeb = -b;

float discriminant = bsquare - fourac;

float squareroot = sqrt (discriminant);

float top1 = oppositeb - squareroot;

float answer1 = top1 / twoa;

float top2 = oppositeb + squareroot;

float answer2 = top2 / twoa;

cout << "the answer to the quadratic equation is: " << answer1 << " , " << answer2 << ". n" ;

cout << "the discriminant is: " << discriminant << ". n" ;

system("PAUSE");

return 0 ;

}

#include <iostream>

#include <cstdlib>

using namespace std;

int feeb (int seq)

{

long long f = 1;

long long g = 1;

long long i;

long long sum;

for (i = 0; i < seq; i++)

{

sum = f + g;

f = g;

g = sum;

cout << sum << "n";

}

return sum;

}

int main()

{

int input;

cout << "please enter the nth digit of the nfibonacci sequence you would like to know! n n" ;

cin >> input;

feeb (input);

return 0;

}