Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: Ibay
Title:
  Test
Question:
     
#include <stdio.h>

int fun(int n)
{
    if (n == 4)
       return n;
    else return 2*fun(n 1);
}


int main()
{
   printf("%d ", fun(2));
   return 0;
}
Answers:

Name: fellipe
#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
int main(void)
{
     float x1,x2;
     float a,b,c;
     float delta;

cout<<"Digite o coeficiente a"<<endl;
cin>>a;
cout<<"Digite o coeficiente b"<<endl;
cin>>b;
cout<<"Digite o coeficiente c"<<endl;
cin>>c;

delta = b*b-4*a*c;
if      (delta <0)
{
     cout<<"raiz imaginarias"<<endl;
     
}
else
{

//calculo das raĆ­zes
x1=(-b sqrt(delta))/(2*a);
x2=(-b-sqrt(delta))/(2*a);
cout<<"x1 = "<<x1<<endl;
cout<<"x2 = "<<x2<<endl;
}
return 0;
}