coding lama

Ini adalah contoh codingan yang bisa sahabat coba:
#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;

int main(int argc, char** argv) {
float a, b, c;
cout<<"Nilai a : ";cin>>a;
a++;
cout<<"Nilai b : ";cin>>b;
b+=2; c=2*b;
c/=a;
cout<<"Nilai a : "<<a;
cout<<"\n Nilai b : "<<b;
cout<<"\n Nilai c : "<<c;



return 0;
}

hasil codingan

SEMANGAT NGODING!!! :D

Share this

Related Posts

Previous
Next Post »