-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathP1 VER.4 Circulo.cpp
More file actions
30 lines (30 loc) · 867 Bytes
/
P1 VER.4 Circulo.cpp
File metadata and controls
30 lines (30 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//Boyzo Ramirez Carlos Alberto. 1155 F. De Comp. I.E.E. F.E.S. Aragón 01:01 a.m. 06/11/2019
#include <stdio.h>
#include <cstdlib>
#include <iostream>
/*programa numero 1 version 4*/
/*programa que determina el area de un circulo*/
using namespace std;
#define pi 3.1416
#define inicio int main()
#define principio {
#define fin }
#define real float
#define borrar system("cls")
#define escribir printf
#define ingresa scanf
#define retener system("PAUSE")
#define retornar return EXIT_SUCCESS
inicio
principio
borrar;
real radio,area;
escribir("\n\n\t\tPrograma No 1 version 4\n");
escribir("\n\n\t\tPrograma que determina el area de un circulo\n");
escribir("\n\n\t\tDame el valor de tu radio ");
ingresa("%f",&radio);
area=pi*radio*radio;
escribir("\n\n\t\tEl area de tu circulo es %f\n\n\n\t\t",area);
retener;
retornar;
fin