Upload
rikirushnandar
View
8
Download
4
Embed Size (px)
Citation preview
Praktikum
Praktikum 1
Ketik source code berikut :
#include <conio.h> #include <string.h> #include <stdio.h> void main () {
char *str = "LIKU LIKU LAKI LAKI TAK LAKU LAKU";
printf("%s\r\n",strrev(str));
printf("%s\r\n",str);
}
Sebagai hasilnya :
Praktikum 2
Ketik source code berikut :
#include<stdio.h>
#define N 20
main( )
{
int nilai [N],i,jml;
printf("jmlh maksimal tumpukan (<=20)=");
scanf("%d",&jml);
for(i=0; i<=jml; i++)
{