Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Above is how to write FUNCTIONS, Exams of Computer Science

Here is How to write a complex and hard functions

Typology: Exams

2017/2018

Uploaded on 11/11/2018

enes_bcan
enes_bcan 🇹🇷

1 document

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1

Partial preview of the text

Download Above is how to write FUNCTIONS and more Exams Computer Science in PDF only on Docsity!

om ob wo ee hoa be ee be be Re POO ITH hw wh ow #include #include int basTop(int x){ //fonksivonumuzn olughurduk. int top=0,basamak_degeri; int gecici = x: while(gecici>S){ //dgngk kuxduk basamak degeri= geciciti0; top+=basamak_degeri; gecici=gecici/19; } return top; //fonksivondan deGeri dandurdir. main () { int a; printf ("gayi, @izin: "); scanf("sd",s0); //sayd gaxam vesdardak ys gavaud ahap "a" dedagkenine attal printf ("Rasamaklaria koplami: %d",basTop(a)); //fonksivony kallanazak sonueu skzana waadak. getch();