Program Menentukan Jarak Fokus Lensa
Posted by Budi Arieyanto | Posted in Borlant C++ | Posted on 05.03
#include<iostream.h>
#include<conio.h>
void main()
{
float f,n,R1,R2,v,b;
clrscr();
cout<<"MENENTUKAN JARAK FOKUS LENSA"<<endl;
R1=5;
R2=7;
n=5;
f=(n-1)*(1/R1+1/R2);
cout<<"\n\nNilai f = "<<f<<endl;
getche();
}


Comments (0)
Posting Komentar