Create an output like this..
This is the listing Program :
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
main()
{
float a,b,v,w,y,z;
cout<<"Masukkan Nilai A = ";cin>>a;
cout<<"Masukkan Nilai B = ";cin>>b;
cout<<endl<<endl;
v=a*b;
w=a/b;
y=a+b;
z=a-b;
cout<<"Hasil Dari Perkalian a*b = "<<v<<endl;
cout<<"Hasil Dari Pembagian a/b = "<<w<<endl;
cout<<"Hasil Dari Penjumlahan a+b = "<<y<<endl;
cout<<"Hasil Dari Pengurangan a-b = "<<z<<endl;
getch();
}
Enjoy it...
if any one does not understand please ask and leave a comment and follow our blogs ...^_^
update tugas SO wen..
ReplyDelete