Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- #define PI 3.14
- main()
- {
- clrscr();
- printf(" Area del circulo (1) , Longitud del circulo (2) /n ");
- scanf("%d",&opcion);
- printf("Introduzca el radio " );
- scanf("%d,&radio);
- int resultado1, resultado2;
- switch(opcion)
- {
- case 1:
- resultado1 =2*pi*r;
- printf("%f",resutlado1);
- break;
- case 2:
- resultado2 =pi*pi*r;
- printf("%f",resultado2);
- }
- getch();
Advertisement
Add Comment
Please, Sign In to add comment