#include <iostream.h>void inputan();int big(int a,int b,int c); void main(){inputan();} void inputan(){int a,b,c,d;cout<<"Bilangan ke 1 = "; cin>>a;cout<<"Bilangan ke 2 = "; cin>>b;cout<<"Bilangan ke 3 = "; cin>>c;d=big(a,b,c);cout<<"Bilangan Terbesar Adalah = "<<d;} int big(int a, int b, int c){int k;if(a>b && a>c)k=a;else if(b>a && b>c)k=b;elsek=c;return(k);}
0 komentar:
Posting Komentar