Select Menu

Search This Blog

Populer Posts Hari ini

Popular Posts

Powered by Blogger.

Lorem 1

adsense

" });

Circle Gallery

" });

News

" });
» » » program luas segita menggunakan fungsi parameter inputan with C/C++

#include<stdio.h>
#include<conio.h>

int hitung(int r);

void main(){                                  
   int j;
   float cari;
   printf("masukkan r:");scanf("%d",&j);
   cari=hitung(j);
   printf("luas =%f",cari);

getch();

}

int hitung(int r){
   float luas;
   luas=3.14*r*r;
   return(luas);
}

About andi

«
Next
Newer Post
»
Previous
Older Post

No comments

Leave a Reply