1)Write a C++ program that prints a capital C of Stars. The user should be allowed to enter the width, the height and the thickness of the shape.
2)Write a C++ program that reads positive integers and calculates and prints the number of odd and even digits in each.The program should terminate once a negative integer or a zero input.
3)
int rows=3;
int cols=5;
for(int a=1;a<=rows;a++)
{
for(int b=1;b<=cols;b++)
cout<<a*b<<" ";
cout<<endl;
}
Rewrite the code segment above using while loops instead of for loops.