how to print digits with space?
how can i use function 1 and 2 to write a function that inputs an integer between 1 and 32453, and prints it as a series of digits, each pair by two spaces. ex.3245 print: 3 2 4 5;
User Profile
Collapse
-
-
how to print digits with space?
In my homework i need to write a function that inputs and integer between 1 and 32767 and prints it as a series of digits, each pair of which is separated by two spaces. for example 3412 should print as : 3 4 1 2.
please help....... -
Help for homework......isVowel function
write a program that prompts the user to input a sequence of characters and outputs the number of vowels. using the function isVowel.
help me for code.
...Code:bool isVowel(char ch); int main { char letter; int num; cout<<"enter a sequence of characters: "; cin >> letters; letter=isVowel(letter); cout<<"the number of vowels are: -
i only know the flowing. i don't know how to use switch.
...Code:int answer; int num1=0; int num2=0; char ch = ' '; cout << "Welcome to the calculator" << endl; cout << "Enter your equation as number operation number" << endl; cout << "(Example: 3 + 4): "; cin>>num1>>ch>>num2;Leave a comment:
-
write a program that will mimic a calculator
please help me....
using selection structure
the program should take as input two integers and the operation to be performed, iust as it would be entered into a standard calculator. it should output to the screen the same input, including the operator and the result of the operation. example: input2+2, and output 2+2=4
thank. -
I created only half diamon(right side)
<Code Deleted by MOD>
How can i create left side diamonLeave a comment:
-
using loops to create diamon pattern shape
hi.I am a new member in this site.
today my question is how to make a diamond shape using loops?
the shape is like:
Code:* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
No activity results to display
Show More
Leave a comment: