|
|
#10 | ||||||||
|
Junior Member
|
/*"Write a C function that multiplies an input integer by 5 and returns the result. The function must not use the multiplication operator. Optimize for speed."*/
#include<iostream.h> #include<conio.h> add(int); int main() { clrscr(); int a; cout<<"enter no:"; cin>>a; add(a); getch(); return 0; } int add(int a) { a=a+a+a+a+a; cout<<a; } |
||||||||
|
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 02:51 AM.














Threaded Mode
