#include <stdio.h>
#include <conio.h>
#pragma hdrstop
int main()
{
float Nilai1,Nilai2,A,B,C,D;
printf("Nilai ke1=");scanf("%f",&Nilai1);
printf("Nilai ke2=");scanf("%f",&Nilai2);
A=Nilai1+Nilai2;
B=Nilai1-Nilai2;
C=Nilai1*Nilai2;
D=Nilai1/Nilai2;
printf("Nilai_ke1+Nilai_ke2=%2.0f \n",A);
printf("Nilai_ke1-Nilai_ke2=%2.0f \n",B);
printf("Nilai_ke1*Nilai_ke2=%2.0f \n",C);
printf("Nilai_ke1/Nilai_ke2=%2.0f \n",D);
getch();
return 0;
}
OUTPUT PROGRAM
0 komentar:
Post a Comment