... The name of program is i think it is function and structured programming
waa hard to explain
ahmm..
if you input a number 1
temperature must be goes in program then
after that i need to input an exit like
"ARE YOU SURE YOU WANT TO EXIT?" then Y for yes N for No.
if no the program stay in
](null) the program in temperature
if yes she will back in the menu in 1-10 then pick again
please i need this thank you!!!!
first timer in this site :)

EXAMPLE.
include<stdio.h>
include<conio.h>
int rafael;
int temp;
int grade;
char opt;
main()
{
clrscr();
mainmenu();`
printf("1.Temperature");
printf("2.Grade");
printf("Enter a number");
scanf("%d",&rafael);
if(rafael==1) {
temperature();}
else if(rafael==2){
grade();}
else{
printf("Invalid Input");
exit();}
printf("Are you sure you want to exit?");
scanf("%c",&opt);
if((opt='N')||(opt='n')){           
main();}
{else if((opt='Y')||(opt='y'))      <<<<<<<<<<<< POSIBLY INCORRECTLY ASSIGNMENT
exit()}
getch();
return 0;
}
temperature()
printf("Enter Temperature:");           <<<<<<<<<<<< DECLARATION SYNTAX WAAA!
scanf("%d",temp);
if(temp>=30) {                            <<<<<<<<<< DECLARATION TERMINATED INCORRECTLY
printf("ITS HOT!");}
else if(opt<=29){
printf("COOL CLIMATE");
else if(opt<=20){
printf("ITS COLD!");}
{else
printf("INVALID INPUT")}
exit()}
grade()
printf("Enter a Grade");
scanf("%d",&grade)
if(grade>=75) {
printf("PASSED");}
else if(grade<=74) {
printf("FAILED");}
else{ 
printf("INVALID INPUT");}
exit()

I SAVE THIS IN SAVE.C but nothing happen :(
but i need 10 not 2
that is what im doing right now
its to difficult
i need 10 menu help me please!
and please correct my wrong declaration :(
Thanks!

line 26: never, ever for any reason call main() from within your program. That function is reserved for call by the operating system, not your program. Instead, add a loop around all that code.

line 33: syntax error because that line isn't inside any function, at least I don't think so because the code is not formatted very well. Indent the code correctly and you will be able to easily see the problem. It looks like line 32 is the start of temperature function, but { and } are missing around it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.