MENCARI BERAT BADAN IDEAL

#include <iostream.h>
#include <conio.h>

using namespace std;

int main()
{
    float tinggi, hasil1, hasil2, hasil3;
    cout<<"Masukkan Tinggi badan"<<endl;
    cin>>tinggi;
    hasil1=tinggi-100;
    hasil2=hasil1*0.1;
    hasil3=hasil1-hasil2;
    cout<<"Berat Badan Idealnya adalah "<<hasil3<<endl;
    getch();
}


Tampilan program jika dijalankan


Share this article :
 

Posting Komentar

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. ELEKTRONIK - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger