#include <iostream>
usingnamespace std;
int main()
{
int i, j;
for (i=0; i<10; i++)
{
for (j=0; j<11; j++) // i count 11 chars in each line
{
if (i>=j)
{
cout << "\\"; // we need to escape the backslash
}
else
{
cout << "/";
}
}
cout << endl;
}
system("pause");
}
how can I create a program that will accept 2two integers. the user will also choose among the different operations:
1 for addition
2 for subtraction
3 for multiplication
4 for division
EditReportDelete
Reply