Jump to content

[C++] Aflarea ariei unui cerc


Jackson Brooklyn
 Share

Recommended Posts

Salut, am revenit cu un nou cod, acesta calculeaza aria unui cerc.

#include <iostream>
using namespace std;
int main()
{
    float r,a;
 
    cout<<"Introdu raza cercului: ";
    cin>>r;
 
    a=3.14*r*r;
 
    cout<<"Aria cercului este: "<<a;
 
    return 0;
}

Daca aveti nelamuriri va rog sa imi lasati aici in comentarii.

Daca doriti puteti sa imi trimiteti PM cu aplicatii C/C++/Java/HTMl/PHP etc.. si eu o sa va fac un tutorial daca am posibilitatea.

Multa bafta va doresc.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.