public class cubo
{
int lado;
cubo()
{
}
cubo(int a)
{
lado=a;
}
double calc_volumen()
{
double volumen;
volumen=lado*lado*lado;
return volumen;
}
void set_lado(int a)
{
lado =a;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.