Write a C++ program for the following flowchart. N.B Let the user enter the
initial value of X and Y, finaly your program should return the value of X, Y and
Z.
#include <iostream>
int main(int argc, char* argv[])
{
int X, Y, Z;
std::cout << "Enter X, Y, Z: ";
std::cin >> X >> Y >> Z;
std::cout << "The values are: " << X << '\t' << Y << '\t' << Z << std::endl;
return 0;
}
Comments
Leave a comment