Categories
- Al Pro
- Al Pro - Kasus
- Al Pro - Refleksi
- Algoritma
- Chord Guitar
- Dev C++
- internet
- Pemograman
| Order Details | Amount |
|---|---|
|
|
Updated Totals in: |
|
Delivery/Shipping |
|
| Tax: ( %) | |
| GRAND TOTAL: |
Please choose a checkout option.
No personal data required.
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int z,b,c,a; raptor_prompt_variable_zzyz ="Nilai Pertama :"; cout << raptor_prompt_variable_zzyz << endl; cin >> a; raptor_prompt_variable_zzyz ="Nilai Kedua : "; cout << raptor_prompt_variable_zzyz << endl; cin >> b; raptor_prompt_variable_zzyz ="Nilai Ketiga : "; cout << raptor_prompt_variable_zzyz << endl; cin >> c; if (a>b && a>c) {z =a;} else { if (b>c) {z =b;} else {z =c;} } cout << "Nilai Terbesarnya = "<<z << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int z; int b; int a; raptor_prompt_variable_zzyz ="Nilai Pertama :"; cout << raptor_prompt_variable_zzyz << endl; cin >> a; raptor_prompt_variable_zzyz ="Nilai Kedua : "; cout << raptor_prompt_variable_zzyz << endl; cin >> b; while (!(a>b || b>a)) { cout << "maaf nilai yang anda masukan sama" << endl; } if (a>b) {z =a;} else {z =b;} cout << "Nilai Terbesarnya = "<<z << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main(){ string raptor_prompt_variable_zzyz; int z; int b; int a; while (1){ raptor_prompt_variable_zzyz ="Nilai Pertama :"; cout << raptor_prompt_variable_zzyz << endl; cin >> a; raptor_prompt_variable_zzyz ="Nilai Kedua : "; cout << raptor_prompt_variable_zzyz << endl; cin >> b; if ((a>b || b>a)) break; cout << "maaf nilai yang anda masukan sama" << endl; } if (a>b) { z =a;} else {z =b;} cout << z << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int r; int n; int q; int m; while (1) { raptor_prompt_variable_zzyz ="Masukan nilai yang akan di konversi = "; cout << raptor_prompt_variable_zzyz << endl; cin >> m; raptor_prompt_variable_zzyz ="Masukan Nilai pembagi = "; cout << raptor_prompt_variable_zzyz << endl; cin >> n; if (n<m) break; } r =m % n; q =(m-r)/n; cout << "Hasilnya = "<<q<<" dan sisanya "<<r << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int k; int r; int c; int f; cout << "Program Konfersi dari Celsius ke Reamur, Fahrenheit dan Kelvin" << endl; raptor_prompt_variable_zzyz ="Masukan besar suhu (C) = "; cout << raptor_prompt_variable_zzyz << endl; cin >> c; r =(4.0/5)*c; f =9.0/5*c+32; k =c+273; cout << r<<" R" << endl; cout << f<<" F" << endl; cout << k<<" K" << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; float r, l, phi, k; cout << "Program mencari keliling dan luas lingkaran" << endl; raptor_prompt_variable_zzyz ="masukan jari-jari = "; cout << raptor_prompt_variable_zzyz << endl; cin >> r; phi =22.0/7; k =2*phi*r; l =phi*r*r; cout << "keliling lingkaran = "<<k << endl; cout << "Luas Lingkaran = "<<l << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; double m; double inci; double cm; raptor_prompt_variable_zzyz ="Masukan Nilai Dalam Meter = "; cout << raptor_prompt_variable_zzyz << endl; cin >> m; cm =m*100; inci =m*100.0/2.54; cout << "Hasil Konversi dari "<<m<<" meter yaitu = "<<cm<<" centimeter dan "<<inci<<" inchi" << endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int hasil; int b; int a; raptor_prompt_variable_zzyz ="Masukan Bilangan Pertama = "; cout << raptor_prompt_variable_zzyz << endl; cin >> a; raptor_prompt_variable_zzyz ="Dikalikan Dengan = "; cout << raptor_prompt_variable_zzyz << endl; cin >> b; hasil =a*b; cout << "hasilnya = "<<hasil<< endl; system("pause"); return 0; } |
#include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int jumlah; int b; int c; int a; raptor_prompt_variable_zzyz ="Masukan Nilai Pertama : "; cout << raptor_prompt_variable_zzyz << endl; cin >> a; raptor_prompt_variable_zzyz ="Masukan Nilai Kedua : "; cout << raptor_prompt_variable_zzyz << endl; cin >> b; raptor_prompt_variable_zzyz ="Masukan Nilai Ketiga : "; cout << raptor_prompt_variable_zzyz << endl; cin >> c; jumlah =a+b+c; cout << "Jumlahnya = "<<jumlah << endl; system("pause"); return 0; } |
| #include <iostream> #include <string> using namespace std; int main() { string raptor_prompt_variable_zzyz; int hasil; float x2; float x1; float b; float c; float disk; float a; cout << "Bentuk Persamaannya " << endl; cout << "Ax^2 + Bx + C = 0" << endl; while (1) { raptor_prompt_variable_zzyz ="Masukan Niali A : "; cout << raptor_prompt_variable_zzyz << endl; cin >> a; raptor_prompt_variable_zzyz ="Masukan Niali B : "; cout << raptor_prompt_variable_zzyz << endl; cin >> b; raptor_prompt_variable_zzyz ="Masukan Niali C : "; cout << raptor_prompt_variable_zzyz << endl; cin >> c; if (a>0 || a<0) break; cout << "Bukan persamaan kuadrat" << endl; } disk =(b^2)-(4*a*c); if (disk<0) { hasil ="akar imajiner"; } else { if (disk==0) { x1 =-b/2*a; x2 =x1; } else { x1 =-b+sqrt(disk)/2*a; x2 =-b-sqrt(disk)/2*a; } hasil =x1<<" dan "<<x2; } cout << hasil << endl; return 0; } |
Angka | Outputnya |
1 | Senin |
2 | Selasa |
3 | Rabu |
4 | Kamis |
5 | Jumat |
6 | Sabtu |
7 | Minggu |
Nilai Angka | Nilai Huruf |
0-20 | E |
21-40 | D |
41-60 | C |
61-80 | B |
81-100 | A |