#include<stdio.h>
#include<conio.h>
Main()
{
Float n1,n2,n3,hasil1,hasil2,hasil3,hasil4
Clrscr();
Printf("\Nilai 1 : ");
scanf("%f",& n1);
Printf("\Nilai 2 : ");
scanf("%f" ,& n2);
Printf("\Nilai 3 : ");
scanf("%f" ,& n3);
Hasil1 = n1+n2+n3;
Hasil2 = n2*n3-n1;
Hasil3 = (n1+n3)*n2;
Hasil4 = (n1+n2)\n3
Printf("\n Hasil1 : %5.0f", hasil1);
Printf("\n Hasil2 : %5.0f", hasil2);
Printf("\n Hasil3 : %5.0f", hasil3);
Printf("\n Hasil4 : %5.0f", hasil4);
Getch();
}
Selasa, 06 Desember 2016
Home »
» C++ (coding penjumlahan nilai);
0 komentar:
Posting Komentar