0

using c++ and SubRoutine.

Problem1: Design a function-oriented program that computes the total of the squares from 1 to n which n is supplied by a user. ex. 12345=1+4+9+16+25=55

Problem2:Design a function-oriented program that computes the factorial value of an input N
by a user ..Display the computed factorial value on the screen..

thanks to all.. i hope u can help me..:)

Edited by zxzniczxz: n/a

4
Contributors
6
Replies
7
Views
6 Years
Discussion Span
Last Post by hag++
0

You have to attempt it, and if you run into trouble we may offer some help. Basically we don't do your homework for you.

I will help you with this at least, if 'n' grows even slightly large you will need a very large data type to store the sum. I would consider for most systems the "unsigned long long" type.

0

sir,
this is not my homework..i only want to get advance for my study in c++. this problem is in my book. which have a problem statement like this. thanks,

0

this is not my homework..i only want to get advance for my study in c++.

I fail to see how it not being homework somehow exempts you from making an honest attempt.

Edited by Narue: n/a

0

thank you sir...dont help if you want...

Edited by zxzniczxz: n/a

0

You've had a whole day to work on this. Do you still have absolutely nothing to show for it? If so, that confirms our suspicions that you're just looking for a handout.

0

Seems like people trying to learn programming get lazier and lazier every day....

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.