Write C Program Declaring Initializing Two Variables Values 8 2 Declared Use Function Calc Q37061351

Write a c++ program declaring and initializing two variables with the values 8 and 2. Once declared, use a function to calculWrite a c++ program declaring and initializing two variables with the values 8 and 2. Once declared, use a function to calculate and output the sum and product of the two values. Make sure you label your outputted values. Use a function to accomplish this. Declare your variable as local variables. NOTE: Locally declare your variables in the main function!!! HINT: Variables must be passed to called function. Show transcribed image text Write a c++ program

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.