<u>C++ program to print the digit without a comma </u>
#include<iostream>
#include<string>
using namespace std;
void commaremoval(string num) /*Defining function commaremoval with parameter num of string type*/
{
string s=num;
for(int i=0; i< s.length();i++)
{
if(s[i]!=',')
/*Checking whether the string doesn't contain ' ,' */
cout<<s[i]; //Printing Output without comma
}
}
//driver function
int main()
{
string num;
cout<<"Enter a digit between 1,000 and 999,999:"<<endl;
/*taking input from user*/
cin>>num;
commaremoval(num);
//calling function
return 0;
}
<u>Output</u>
Enter a digit between 1,000 and 999,999: 22,343
22343
C, air.
The gasoline and air are mixed together in precise portions and then this mixture combusts in the engine.
Answer: You could use the path (2)
Explanation:
It is not necessary for the file to be in the same folder
You can use the relative path to a sub-folder
Backward Slashes are not necessary for windows. (you could also use forward slashes)
The full path is not necessary if the file is in the same folder.
Answer:
barter
Explanation:
is the direct trade of goods, services and resources without the use of money