+ 1

What is a function for?

30th Jul 2016, 8:38 PM
Narek Tonoyan
Narek Tonoyan - avatar
3 Answers
+ 2
It reduces the amount of typing so it'll help us to save time, also we can write it once and call it a thousand times which can result in better memory management.
30th Jul 2016, 11:44 PM
Alireza M
Alireza M - avatar
- 1
it is made for keeping a program small and makes programing user friendly suppose you have to use factorial of a number 10 times in a program by functions you don't need to type whole code again and again just make a function and use it everytime you need it
17th Aug 2016, 1:23 PM
ritik tiwari
ritik tiwari - avatar
- 2
see...for loop is a efficient option to while loop.well then ,what is a loop.?means continous performance of given iteration.in for loop,after veryfying test condition as true..we can actually go through the iteration.
31st Jul 2016, 4:49 PM
sushant
sushant - avatar