SlideShare a Scribd company logo
1 of 14
?

** Main Menu **
1.

INPUT DATA

2.

DISPLAY DATA

3.

EXIT

Select 1-3 = …

1.
2.
3.








#include <stdio.h>
void function-name1()
{
…………….
}
void function-name2()
{

…………….
}
main()
{
function-name2();
…………….
function-name1();
}
#include <stdio.h>
void function-name1();
void function-name2();
main()
{
function-name2();
…………….
function-name1();
}
void function-name1()
{
…………….
}
void function-name2()

{
…………….
}



203+102



345-123



20x123



1000/25




void function_name();
#include <stdio.h>
void addition()
void main()
{
addition();
……………….
}
void addition()
{
……………….
}
void function_name(type_parameter parameter_name [,…]);

#include <stdio.h>
void addition(int, int)
void main()
{
int a, b;

addition(a,b);
……………….
}
void addition(int m, int n)
{
……………….
}
type_variable function_name(type_parameter parameter_name [,…]);

#include <stdio.h>

int gold(int)
void main()
{
int money, pay;
pay = gold(money);
……………….

-

}
int gold(int recieve)
{
……………….
change = receive * 100;
return(change);
}

-
(Global Variable)




(


main() )

(Local Variable)





(

main() )
 sin(x);

sine

x

 cos(x);

cosine

x

 tan(x);

tangent

x

 sqrt(x);

x

 pow(x,y);

x

y

 ceil(x);

x

 floor(x);

x

 log(x);

log

n

x

 log10(x);

log

10

 exp(x);
(e=2.718282)
 fabs(x);

x
e

x
 strcpy(string1,string2);
 strcat(string1,string2);
 strcmpat(string1,string2);
 strlen(string);
 strcmp(string1,string2);

 tolower(character);
 Toupper(character);

More Related Content

What's hot (17)

Info clasa
Info clasaInfo clasa
Info clasa
 
Шаблоны проектирования 2
Шаблоны проектирования 2Шаблоны проектирования 2
Шаблоны проектирования 2
 
Program brian
Program brianProgram brian
Program brian
 
An introduction to functional programming with Go [redux]
An introduction to functional programming with Go [redux]An introduction to functional programming with Go [redux]
An introduction to functional programming with Go [redux]
 
Vcs19
Vcs19Vcs19
Vcs19
 
Luis cuñas programacion
Luis cuñas programacionLuis cuñas programacion
Luis cuñas programacion
 
Clear all
Clear allClear all
Clear all
 
Metodos Numericos
Metodos NumericosMetodos Numericos
Metodos Numericos
 
exercise of basic computer programming.docx
exercise of basic computer programming.docxexercise of basic computer programming.docx
exercise of basic computer programming.docx
 
Linklist through struct
Linklist through structLinklist through struct
Linklist through struct
 
Metodos Numericos(Segundo Taller De Aplicadas)
Metodos Numericos(Segundo Taller De Aplicadas)Metodos Numericos(Segundo Taller De Aplicadas)
Metodos Numericos(Segundo Taller De Aplicadas)
 
Problemas propuestos -garcia
Problemas propuestos -garciaProblemas propuestos -garcia
Problemas propuestos -garcia
 
Sbaw090526
Sbaw090526Sbaw090526
Sbaw090526
 
Problemas propuestos
Problemas propuestosProblemas propuestos
Problemas propuestos
 
Exponential and logarithm function
Exponential and logarithm functionExponential and logarithm function
Exponential and logarithm function
 
Zadatak
ZadatakZadatak
Zadatak
 
Dij
DijDij
Dij
 

More from Tipprapa Sungsinchai (6)

Normalization
NormalizationNormalization
Normalization
 
ข าว It new2
ข าว It new2ข าว It new2
ข าว It new2
 
ข่าว It new
ข่าว It newข่าว It new
ข่าว It new
 
ข่าว It new
ข่าว It new ข่าว It new
ข่าว It new
 
งานย อยท _ 2
งานย อยท _ 2งานย อยท _ 2
งานย อยท _ 2
 
ข่าว It
ข่าว Itข่าว It
ข่าว It
 

โปรแกรมย่อยและฟังก์ชั่นมาตรฐาน