silent_mode
Addict
Using a escape character or new linesige po
pano po i program yung ganito po dapat lalabas sa program
*
**
***
****
*****
endl or /n
Using a escape character or new linesige po
pano po i program yung ganito po dapat lalabas sa program
*
**
***
****
*****
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int x;
float y;
cout << "Enter base and exponent respectively: ";
cin >> x>> y;
cout << "Result = " << pow(x, y);
return 0;
}
pano ba lagyan ito ng function?
int exponent(int x, iny y){
return pow(x, y);
}
pano po ba ang body nito mam please po if you are willing to make a help.. help further iyong knowledge na nalalaman nyo po will pass from generation to generation.. make it sense..
na iintindihan ko na ngayon mam.. e pano ba iyong input ng name 5 times using function dapat makalagay ka ng any name at lalabas ang 5 times na name na linagay mo?
#include<iostream>
#include<string>
using namespace std;
string multiplyString (string str);
int main()
{
string str;
cout<<"Please enter a word: ";
cin>>str;
system("CLS");
str = multiplyString (str);
cout<<str<<endl<<endl;
system("pause");
return 0;
}
string multiplyString (string str)
{
string str2;
for (int x = 0; x < str.size(); x++)
{
str2 = str2 + str;
}
return str2;
}
pano ba gawing horizontal ang output po nito,,, i need help pls