Brain Teasers : C/C++



List Of 'C' Programs.

  • [ Assignment #01 ] ~ Write A C Program To Find & Print The Sum Of Natural Numbers Upto A User-Specified Range. For Ex : If User Wants To Find Sum Of First 10, 15, 37, Etc Natural Numbers, Then Program Should Find The Respective Sum.
  • [ Assignment #02 ] ~ Write A C Program To Find & Print The Sum & Average Of Natural Numbers Upto A User-Specified Range. For Ex. If User Wants To Find Sum & Average Of First 10, 15, 37, Etc Natural Numbers, Then Program Should Find The Respective Sum & Average.
  • [ Assignment #03 ] ~ Write A C Program To Find The Factorial Of A User Entered Number. For Ex : If User Enters No. '5', Then Program Should Find It's Factorial.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

List Of 'C++' Programs.

  • [ Assignment #01 ] ~ Write A C++ Program To Accept The Name & Marks Of A Student In 'N' Subjects. Allocate The Space For The Array Dynamically. Display The Name & Average Of Marks. Make Use Of : cin, cout, new, delete.
  • [ Assignment #02 ] ~ Write A C++ Program To Swap Two Integers Using Call By Reference.
  • [ Assignment #03 ] ~ Write A C++ Program Having A Function To Calculate Area Of Circle. Use PI As A Constant Variable. Make The Function An Inline Function.
  • [ Assignment #04 ] ~ Write A C++ Program To Overload Function ADD() To Add Two Integers, Floats, Doubles.
  • [ Assignment #05 ] ~ Write A C++ Program Having Single Function To Multiply 2, 3 Or 4 Integers Using Default Arguments To Multiply Function.





No comments:

Post a Comment

Subscribe To:

Most Commonly Asked Programs In 'C' & 'C++' Language.

Blog Archive