#include<stdio.h>
#include<conio.h>
#include<math.h>
void main( )
{
int a,b;
float c;
a=8;
b=9;
c=float(a)/float(b);
printf("jika angka pertamanya adalah : %d",a);
printf("\ndan jika angka keduanya adalah : %d",b);
printf("\n%d+%d=%d",a,b,a+b);
printf("\n%d-%d=%d",a,b,a-b);
printf("\n%d*%d=%d",a,b,a*b);
printf("\n%d/%d=%f",a,b,c);
printf("\n%d^%d=%f",a,b,pow(a,b));
printf("\n%d=%f",a,sqrt(a));
getch( );
}
#include<conio.h>
#include<math.h>
void main( )
{
int a,b;
float c;
a=8;
b=9;
c=float(a)/float(b);
printf("jika angka pertamanya adalah : %d",a);
printf("\ndan jika angka keduanya adalah : %d",b);
printf("\n%d+%d=%d",a,b,a+b);
printf("\n%d-%d=%d",a,b,a-b);
printf("\n%d*%d=%d",a,b,a*b);
printf("\n%d/%d=%f",a,b,c);
printf("\n%d^%d=%f",a,b,pow(a,b));
printf("\n%d=%f",a,sqrt(a));
getch( );
}
0 komentar:
Posting Komentar