Fundamentals of Computer Programming C++ Programs
Q1. Add the code on the doted lines in the following program to generate the output given after the source code. Sol: #include<iostream> using namespace std; int main() { int x=100; float y=6.0; float sum; float product; float m; sum=x + y; cout << "The Sum of x and y is " <<sum<< endl; product=x*y; cout<< "The product of x and y is " <<product<<endl; m=x+y+100; ...
Comments
Post a Comment