Girilen sayinin karesini,küpünü,karekökünü bulan program.

#include <iostream.h>

#include <stdlib.h>

#include<math.h>

#include<stdio.h>

#include<conio.h>



int main()

{

double a,b,c,x;

char s;

ilk:

cout<<"\nLutfen bir sayi girin"<<endl;

cin>>x;

a=(x*x);

b=(x*x*x);

c = pow(x,0.5);

cout<<"\nKaresi "<<a<<endl;

cout<<"\nKupu "<<b<<endl;

cout<<"\nKare Koku "<<c;



cout<<"\n\nTekrar islem yapmak istiyor musunuz?(E/H)"<<endl;

cin>>s;



switch (s)

{

case 'e': { goto ilk; break;}

case 'E': { goto ilk; break;}

case 'h': { return 0; break; }

case'H' : { return 0; break;}

default : { printf("Lütfen E veya H girin."); break; }

}

getch();

return 0;

}