C/Visual C - traducir

 
Vista:

traducir

Publicado por gisella (1 intervención) el 18/04/2013 05:52:13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <cstdlib>
#include <iomanip>
#include <iostream>
 
using namespace std;
 
int main(int argc, char *argv[])
{
 
    float b,h,a,p;
	cout<<"ingrese base ";
	cin>>b;
	cout<<"ingrese altura ";
	cin>>h;
	a=b*h;
	cout<<"area "<<a<<endl;
	p=2.0*(b+h);
	cout<<"perimetro "<<p<<endl;
 
    system("PAUSE");
    return EXIT_SUCCESS;
}
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder