Wlcome to the blogging tifani

Program C++ Menentukan Titik Temu

Jumat, 24 Oktober 20140 komentar

#include<iostream.h>
#include<conio.h>
#include <stdlib.h>
using namespace std;
int main()
{
int x1,x2,y1,y2,y3;
cout<<"\t\t\t===-----------------==="<<endl;
cout<<"\t\t\t|MENENTUKAN TITIK TEMU |"<<endl;
cout<<"\t\t\t===-----------------==="<<endl;
for (x1=1;x1<=10;x1++){
for(x2=1;x2<=10;x2++){
y1=(4*x1)-(2*x2);
y2=(2*x1)+x2;
y3=(-2*x1)+(7*x2);
if (y1==y2&&y1==y3&&y2==y3){cout<<x1<<" dan "<<x2<<" merupakan akar dari persamaan"<<endl;}
}
}
}

Share this article :

Posting Komentar

 
Support : Cara Gampang | Creating Website | Johny Template | Mas Templatea | Pusat Promosi
Copyright © 2015. TIfanie - All Rights Reserved
Template edited by Creating Website Modify by Teknologi Informasi kinie
Proudly powered by Blogger