473,397 Members | 1,985 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,397 software developers and data experts.

can you help me fixing problems i have with the sintaxis im really having a hard time

#include<stdlib.h>
#include<stdio.h>



char id, rsp;
float nota1, nota2, conta=0, contb=0, acumb=0, acuma=0;
main()
{
do
{
printf("/ningrese la cedula de identidad del estudiant");
scanf(" %c", id);
do
{
printf("/ningrese la nota del primer curso");
scanf ( " %f", nota1);
if ((nota1<1) || (nota1>20))
{
printf("/nla nota que usted introdujo no es valida");
return main();
}
do
{
printf( "/ningrese la nota del segundo curso");
scanf (" %f", nota2);
if ((nota2<1) || (nota2>20))
{
printf( "/nla nota que usted introdujo no es valida");
return main();
}
printf("/nel numero de carnet del estudiante es %c,", id);
printf("/nla nota del primer curso fue %f,", nota1);
printf ("/nla nota del segundo curso fue %f", nota2);
printf ("/nla media de sus notas es %f:", (nota1+nota2)/2);
if (((nota1+nota2)/2)<15)
{
printf("/n el estudiante sera ubicado en el curso B");
contb=contb+1
acumb=acumb+((nota1+nota2)/2)
}
else
{
printf("/n el estudiante sera ubicado en el curso A");
conta=conta+1
acuma=acuma+((nota1+nota2)/2)
}

printf("/n desea ingresar el dato de otro estudiante? si=s no=n");
scanf(" %c", rsp);
while (rsp=='n')

Printf("/n la cantidad de alumnos en el curso A es de %f:", conta);
printf("/n la cantidad de alumnos en el curso B es de %f:", contb);
Printf("/n la media en el curso A es de %f:", acuma/conta);
printf("/n la media en el curso B es de %f:", acumb/contb);








}
Feb 21 '15 #1
2 1163
weaknessforcats
9,208 Expert Mod 8TB
You are missing the semi-colon at the end of many statements.

Your do-loops are missing the while clause at the end.
Feb 21 '15 #2
Luuk
1,047 Expert 1GB
and:
1) you miss [code]-tags around your code
2) "return main()" is not correct
3) "Printf("/n la cantidad de alumnos en el curso A es de %f:", conta);"
Printf is not valid c, printf is......
Feb 22 '15 #3

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

Similar topics

3
by: Jay | last post by:
I previously posted this question under Visual Basic newsgroup, but was advised to re-post here. I'm hoping someone can help me solve an issue I'm having with VB.Net and Access 2000. Here's...
3
by: George Hester | last post by:
You know there is a difference between the Microsoft .NET Framework and the Microsoft .NET Framework SDK. Besides the fact that the former is 20 some MB and the latter is some 100MB there is a...
6
by: NomoreSpam4Me | last post by:
Hi there i'm having a hard time: i have a form and a rpt base on a qry Name: Frm Notice Rpt Notice Qry Notice
5
by: Sona | last post by:
I understand the problem I'm having but am not sure how to fix it. My code passes two char* to a function which reads in some strings from a file and copies the contents into the two char*s. Now...
11
by: Jim S. | last post by:
hi guys and gals, i have an array, but i have the hardest time putting the value in the table, so what is the normal procedure? thanks Jim
1
by: gmax2006 | last post by:
Hi, I am having hard time with installing MySQLdb on Linux. My Python version is 2.3. I have downloaded "MySQL-python-1.2.1_p2.tar.gz" from sourceforge. The README file asks for MySQL...
0
by: antonyliu2002 | last post by:
I am having a hard time connecting to an oracle database from within Visual Web Developer (VWD) 2005 Express Edition. Check out the screen snap shot here: ...
8
by: pbd22 | last post by:
hi. i have spent the past week (i am afraid) trying to get the below script for uploading files via a hidden iframe to work. i have narrowed down my problem to the possibility that IE doesnt...
4
by: LyTseu | last post by:
Hello All, I'm having a hard time setting up a form using two control source. Let me explain to you my form first. The form acquires data and date and comment in table A so we have...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.