Professional Documents
Culture Documents
Program Menghitung 2 Buah Bilangan
Program Menghitung 2 Buah Bilangan
#include <stdio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
main() {
float bilangan_1 =2.4, bilangan_2= 1.3, bilangan_akhir;
bilangan_akhir=bilangan_1+bilangan_2;
Output :
Program Menghitung Luas Persegi
#include <stdio.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
main() {
int sisi = 4, Luas;
Luas =sisi*sisi;
Output: