5
5
5.12
cout << endl;
#include <iostream>
}
using namespace std;
5.9
int main() #include <iostream>
{ int main()
// figura e pare {
// figura e katert cout << setw(16) << "Iteration" << setw(16) << fixed <<
setprecision (8) << "PI" << endl;
for (int j = 1; j < (11 - i); j++)
for (int i = 1; i <= 2000; i += 2)
cout << " ";
{
for (int j = (11 - i); j <= 10; j++)
if (sign)
cout << "*";
pi += 4.0/i;
cout << endl;
else
pi -= 4.0/i; {
#include <iostream>
char character;
cout << "Vendosni vleren e sales ose shtyp -1 per te dale while (size != -1)
nga programi: ";
{
cin >> sales;
cout << "Enter fill character: ";
while (sales != -1)
cin >> character;
{
displaySquare(size, character);
cout << "rroga eshte : $" << setprecision(2) << fixed << 200
+ 0.09 * sales << endl << endl; cout << "Enter size of square (-1 to exit): ";
cout << "Vendosni vleren e sales ose shtyp -1 per te dale cin >> size;
nga programi: "; }
cin >> sales; }
}
6.22
}
#include <iostream>
cout << "*"; cout << " Hipotenuza e trekëndëshit kënddrejtë me brinjë
" << x1 << " dhe " << x2 << " eshte: " <<
cout << endl;
hypotenuse(x1,x2) << endl;
}
x1 = 5.0;
}
x2 = 12.0;
displaySquare(squareSize); }
} #include <iostream>
6.19
int intQuotient(int number, int divisor)
#include <iostream>
{
#include <cmath>
return number / divisor;
using namespace std;
}
int main()
int main()
{
{
double x1, x2;
int number;
x1 = 3.0;
int divisor = 10000;
cout << "vendos nje numer (nga 1-32767): "; for (int i = 0; i < 5; i++) {
{ break;
if (intQuotient(number, divisor) != 0) }
{ }
} }
} break;
}
ush I 2 nga ato qen a dha zysha te
shkruara }
return 0;
#include <iostream>
}
#include <cstdlib>
#include <cstdlib>
srand(time(0));
int main() {
largest = current;
cout << endl << "Numri me I madhe eshte: " << largest <<
endl;
return 0;
void printName() {
void printAddress() {
int main() {
printName();
printAddress();
return 0;