Contekan Alpro

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Contekan Alpro as PDF for free.

More details

  • Words: 319
  • Pages: 2
for(i=0;i
for(j=0;j<(a*(a+1));j++) {if(j%(a+1)==i)

printf("+");

else if((j%(a+1))+i==a-1) else

void main()

printf("+");

printf(" ");

}printf("\n");

{

}getch();}while(a!=0);

int x,y,z; printf("Ketikkan tinngi segitiga = ");scanf("%d",&x);

}

printf("\n"); for(y=1;y<=x;y++) {

for(z=1;z<=2*x-y;z++)

{

if(z
printf(" ");

Else

printf("*");

}printf("\n");

void main()

}printf("\n");

{int i,n,j;

getch();

printf("masukan angka= ");

}

for(i=1;i<=n;i++)

scanf("%d",&n);

{ for(j=1;j<=i;j++) {printf("*");} printf("\n");}

for(i=n-1;i rel="nofollow">=1;i--)

int main () {int a,b,c; printf("masukan angka",a); scanf("%d",&a); for (b=1;b<=a;b++) {

Else

getch();} printf("");

printf("*");

PERPANGKATAN {int i, a, p, temp, hasil,pangkat;

}

printf("Input angka yang akan dipangkatkan = " ); scanf("%d",&a);

printf("\n"); }printf("\n");

{printf("*");} printf("\n");}

for (c=1;c<=2*a-b;c++) { if(c
{for(j=1;j<=i;j++)

getch ();

}

printf("Input pangkat : ");scanf("%d",&p); if(p<0) {do {printf("Masukkan pangkat kembali : ");scanf("%d",&p); }while (p<0); for(i=0;i
void main()

{(hasil=hasil*a);} printf("Hasil perpangkatan %d\n",hasil);}

{int i,a,j; do{system("cls");

else

printf("MASUKKAN INPUTAN BOS = "); scanf("%d",&a);

{hasil=1;

for(i=0;i
{ if(i==1 || i==n || j ==1 || j==n) printf("*");

{hasil=hasil*a;}

else printf(" ");

printf("Hasil perpangkatan %d\n",hasil); }

} printf("\n"); } getch(); return 0;

RATA-RATA

LUAS LINGKARAN

{int pilih,a,hasil,i;float b,rata,j,k,l;

{float r,L,i=0; printf("Input banyak luas lingkaran yang ingin ditampilkan : "); scanf("%f",&r);

do{system("cls");

printf("\nJari-jari

printf("=================MENU=========== =====\n");printf("0. Exit\n");

for( i=1;i<=r;i++) {L=phi*i*i; printf("|| %.0f\t

printf("1. Menghitung jumlah seluruh nilai\n"); printf("2. Menghitung rata-rata\n"); printf("Ketik pilihan : ");scanf("%d",&pilih);

Luas \n\n");

%.2f\t||\n",i,L); }

getch();return 0; }

TABEL PENJUMLAHAN

switch(pilih)

printf("Pilih :\nj = untuk penjumlahan\nk = untuk perkalian\nPilihan Anda :");scanf("%c",&pil);

{case 1 :i=0; do{

if(pil=='j')

printf("inputkan angka : ");scanf("%d",&a); i=i+a;}while(a!=0);

{ int i,j; for (i=0;i<=N;i++)

printf("hasil = %d\n",i);getch();

{ for (j=0;j<=N;j++)

break;

{if (i==0 && j== 0)

case 2 :j=0;l=0;

{printf("+\t");}

else {printf("%d\t",j+i); }

do{

}printf("\n");

printf("inputkan angka : ");scanf("%f",&b); if(b!=0)

} getch();

TABEL PERKALIAN

{j++;} int i,j; l=l+b;}while(b!=0); for (i=0;i<=N;i++) rata=l/j;

printf("Rata-rata = %.2f\n",rata); {for (j=0;j<=N;j++)

getch();break; {if(i==0 && j== 0)

{printf("x\t");}

}}while(pilih!=0); else if (i==0 && j!= 0) system("cls"); you!\n");

{printf("%d\t",j); }

printf("You have chosen : Exit \nThank else if(i!=0 && j== 0)

getch();}

else {printf("%d\t",j*i); } }printf("\n"); } getch();

int n; int i=0; int j=0; printf("Masukkan tinggi :"); scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=n;j++)

{printf("%d\t",i); }

Related Documents

Contekan Alpro
May 2020 18
Contekan
June 2020 8
Alpro
April 2020 21
Alpro 1.3
June 2020 20
Contekan Hpk.docx
October 2019 12
Alpro 1.4
June 2020 21