I am new to c++ language, and i am stucked with this que. my teacher told me to write a prog. that will calculate
(1)square-(3)square+(5)square-(7)square+(9)square.............so on using for loop can you help me.
rdrahul809 0 Newbie Poster
Recommended Answers
Jump to PostAnd what exactly does a factorial or fibonacci calculation have to do with the problem you are asked to solve?
Can you try to solve the problem that you are asked to solve?
Jump to PostOK, we can see that you have these two programs written, but what have you done about the current assignment?
BTW, three things to take note of. First, you should always declare
main()
as typeint
; whilevoid main()
is accepted by some older, non-standard compilers, it is not actually …
All 5 Replies
bakwanyana 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
rdrahul809 0 Newbie Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Schol-R-LEA 1,446 Commie Mutant Traitor Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.