Ceriwis

Ceriwis (https://forum.ceriwis.com/forum.php)
-   Programming (https://forum.ceriwis.com/forumdisplay.php?f=63)
-   -   [ask]bahasa C, kok misplaced else? (https://forum.ceriwis.com/showthread.php?t=538421)

Braincode 11th November 2011 01:18 PM

[ask]bahasa C, kok misplaced else?
 

siang agan2....

gini gan... ane bikin program, tapi kok malah eror n tulisannya misplaced else in function main () http://static.kaskus.us/images/smili...gan/amazed.gif

padahal ane udah nyontoh program2 yg sblumnya ane bikin, n gak ada masalah sama 'else' nyah :hammer:

Mohon pencerahannya buat mastah2 programing... salah dimana n benerin yah... :ceriwislove::ceriwislove:

sdikit ssnya nih...


Spoiler for ss:




http://u.kaskus.us/3/4amrc8ax.jpg









<div style="margin:20px; margin-top:5px">
Spoiler for kodenyah:


<div class="alt2" style="margin: 0px; padding: 6px; border: 1px inset;">
<div style="display: none;">


#include

#include

int main(void)

{

int jb;



char judul[20],judul1[20],judul2[20];



for(;http://static.kaskus.us/images/smilies/sumbangan/13.gif{

printf("\nBerapa buku yang ingin anda pinjam? (max=2)\n");

scanf("%d",&jb);

if(jb>0 && jb


All times are GMT +7. The time now is 08:37 AM.