Está en la página 1de 4

#include <iostream.

h>

using namespace std;

main ()

float x,y,s;

cout<<"\n ingrese nuemerox:";

cin>>x;

cout<<"\ningrese el numero y :";

cin>>y;

s=x+y;

cout<<x<<"+"<<y<<"="<<s;

system ("pause");

return 0 ;

}
#include<iostream.h>

using namespace std;

main()

float r=0;

float pi= 3.1416;

float a=0;

cout<<"digite el valor del radio:";

cin >>r;

r=r*r;

a=pi*r;

cout<<"el area del circulo es:"<<a<<endl;

cout<<pi<<"*"<<r<<"="<<a<<"\n";

system ("pause");

}
# include <iostream.h>

using namespace std;

# include <stdio.h>

int main ()

int uno,dos;

printf("ingrese el primer numero:");

scanf("%d",&uno);

printf("imgrese el segundo numero:");

scanf("%d",&dos);

printf("la suma de los numeros ingresados es:%d.\n",uno+dos);

system("pause");

return 0;

#include <iostream.h>

using namespace std;

main ()
{

float x,y,s,r,p,d;

cout <<"\n ingrese numero x:";

cin>>x;

cout<<"\n ingrese numero y:";

cin>>y;

s=x+y;

r=x-y;

p=x*y;

d=x/y;

cout<<x<<"+"<<y<<"="<<s;

cout<<"\n"<<x<<"-"<<y<<"="<<r;

cout<<"\n"<<x<<"*"<<y<<"="<<p;

cout<<"\n"<<x<<"/"<<y<<"="<<d;

system ("pause");

return 0;

También podría gustarte