Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Calcular area do circulo (C++)
SUBMITTED BY:
kaiser722
DATE:
Oct. 20, 2016, 11:01 p.m.
FORMAT:
Text only
SIZE:
271 Bytes
Raw
Download
Tweet
HITS:
605
Go to comments
Report
//Calcular area do circulo
#include <iostream>
int main (){
const float pi = 3.14159265F;
int radius;
float area;
std::cout << "Qual o raio do circulo?";
std::cin >> radius;
area = pi * (radius * radius );
std::cout << "A area e'" << area << std::endl;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus