473,326 Members | 2,104 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,326 software developers and data experts.

cant find error:expression syntax

#include<stdio.h>
voidmain()
{
int no_days,months,days;
clrscr();
printf("enter number of days:");
scanf("%d",&no_days);
months=no_days/30;
days=no_days%30;
printf("\nmonths=%d\ndays=%d",months,days);
getch();
}
Nov 23 '13 #1
3 1342
Luuk
1,047 Expert 1GB
please use the 'code' tage when trying to post code

BTW: The error is on the second line of your code "voidmain()"
Nov 23 '13 #2
sorry but i dont know the code tag, can you explain.....?
with example so i can understand better...
Nov 23 '13 #3
Luuk
1,047 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. #include<stdio.h>
  2. voidmain()
  3. {
  4. int no_days,months,days;
  5. clrscr();
  6. printf("enter number of days:");
  7. scanf("%d",&no_days);
  8. months=no_days/30;
  9. days=no_days%30;
  10. printf("\nmonths=%d\ndays=%d",months,days);
  11. getch();
Nov 23 '13 #4

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

Similar topics

1
by: Daniel Bello Urizarri | last post by:
Hello: I have a web service that runs well on ASP 1.0. Now I'm migrating it to ASP 2.0, and now im at the point in wich the project runs under the ASP Developer server od the visual studio 2005,...
2
by: yasin | last post by:
I have to refresh my site every 5 secs but I cant find my sites meta tag in my site I think there is no meta tag clearly pages includes masterpages. How can I access the meta tag of my page whit...
1
by: Eric | last post by:
This program is running fine in my office i just copy it and run at home it start given that error and highlight Chr(13). I dont know is this is what the error is or some thing else Compiler...
1
by: niraj | last post by:
I am getting the following error /usr/bin/ld: cant find -lutl Please advice which module i need to install .I am unable to find it . TIA Niraj
2
by: andrewanderson | last post by:
hi can anyone help me with this prog. cant find the prob why it cant display cout<<"This is the display of your transaction"<<endl; ifstream fobj; //declare input file stream ...
1
by: foocc | last post by:
Hi, im trying to convert data reports (.dsr) in vb6 to crystal reports in vb.net. However, I cant seems to find it in my Microsoft Visual Studio 2005 Tools for Office. I've tried going to...
4
by: gawasthi | last post by:
Hi, I am absolutely new to perl and for a specific reqmt I am running the following script: #!/usr/bin/perl use warnings; use lib '/opt/InCharge65/IP/smarts/perl/5.6.1/lib'; use...
1
by: figaro | last post by:
Hi All, I have developed an application in .net, now the thing is I have to display the data on a report. I thought of using a crystal report. Here I understand that I have to add Crystal...
2
by: nevila | last post by:
i know my pass but i am a user and i cant find the ip of the camera at work?please help me?because i know the password. Best regard, Nevila
11
by: dowlingm815 | last post by:
the following code is generating an error; Mircosoft Access cant find the field '|" referred to in your expression" any suggestions would be appreciated. Private Sub...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.