Cah cilik belajar ngoding8

Menghitung Volume :

#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) {
    int a, b, volume;
   
    cout<<"Masukkan angka \t:";cin>>a;
    volume= a*a*a;
    cout<<"hasil \t:"<<volume<<endl;
    return 0;
}
Outputan codingan diatas ;


^_^ Selamat Belajar 

Komentar

Postingan populer dari blog ini

Studi Case

Mencari titik tengah sebuah garis

Pemrograman Web Dinamis