By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,961 Members | 1,301 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,961 IT Pros & Developers. It's quick & easy.

Declaration syntax error and statement missing ;

P: 2
#include<stdio.h>
#include<conio.h>
main()
{
int hp,jp,ap,jb,ht
float ht;
printf("-->LankBuana Audio System<--");
printf("\n======================");
printf("\nMASUKAN NAMA PEMBELIAN = ");
scanf("%d",&hp);
printf("\nMASUKAN TANGGAL PEMBELIAN = ");
scanf("%d",&jp);
printf("\nMASUKAN ALAMAT PEMBELI = ");
scanf("%d",&ap);
printf("\nMASUKAN HARGA PEMBELIAN = ");
scanf("%d",&jp);
printf("\nMASUKAN JUMLAH BAYAR = ")
scanf("%d",&jb);
ht=jb-hp;
printf("\nHARGA TOTAL = ",ht);
printf("\n======================");
getch();
}
Oct 26 '17 #1
Share this Question
Share on Google+
3 Replies


P: 2
thts my program, its basic, and im still learning,
Oct 26 '17 #2

weaknessforcats
Expert Mod 5K+
P: 9,197
This line:

Expand|Select|Wrap|Line Numbers
  1. int hp,jp,ap,jb,ht
is missing a semi-colon.
Oct 26 '17 #3

Expert 100+
P: 2,396
Also this line:
Expand|Select|Wrap|Line Numbers
  1. printf("\nMASUKAN JUMLAH BAYAR = ")
is missing a semi-colon.
Oct 26 '17 #4

Post your reply

Sign in to post your reply or Sign up for a free account.