473,385 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Declaration syntax error and statement missing ;

#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
3 1547
thts my program, its basic, and im still learning,
Oct 26 '17 #2
weaknessforcats
9,208 Expert Mod 8TB
This line:

Expand|Select|Wrap|Line Numbers
  1. int hp,jp,ap,jb,ht
is missing a semi-colon.
Oct 26 '17 #3
donbock
2,426 Expert 2GB
Also this line:
Expand|Select|Wrap|Line Numbers
  1. printf("\nMASUKAN JUMLAH BAYAR = ")
is missing a semi-colon.
Oct 26 '17 #4

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

Similar topics

3
by: mandogon | last post by:
Hello peoples i am having trouble compiling this program getting a the error is "Declaration Syntax error" using borland c++ bulider v.6 if any one can help thanks void __fastcall...
5
DanielTNBaker
by: DanielTNBaker | last post by:
Basically gettting a "Declaration Syntax Error" do not understand what i have done wrong would appreciate it if someone could help. void Search_Client(void); void PriceList(void); void...
2
by: Lothsfeld | last post by:
Can someone help me w/ this I can't run it and I keep getting errors unable to open include file 'stdio.h' and declaration syntax error #include<stdio.h> main(); { int a,b,c; ...
7
by: Bowzer1999 | last post by:
I am a beginner at C++ and would be very grateful if someone could simply tell me why my program will not compile. My program is as follows, #include <stdio.h> #define int 1ST VALUE = 23.0 ...
11
by: Blondie1966 | last post by:
Im trying to write a program about a truck inventory with trucks coming and going and the amount in each one, but keep coming up with declaration syntax error.. Any help would be greatly appreciated....
1
by: akhilandrews | last post by:
void main() { clrscr(); cout<<"\t\tMenu"; cout<<"\n\n\t1.\tDisplay all the employees' info."; cout<<"\n\n\t2.\tDisplay specific employes' info."; ...
1
by: akhilandrews | last post by:
#include<iostream.h> #include<stdio.h> #include<fstream.h> #include<conio.h> void main() { clrscr(); char i; ofstream fout("C:\\TurboC4\\TC\\BIN\\Article.txt"ios::out) ...
5
samrah
by: samrah | last post by:
i cannot run this program just because of 1 declaration syntax error. also there is 1 warning which says"unreachable code". what to do?? #include<iostream.h> #include<stdio.h> #include<conio.h>...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.