- 0
Notifications Mark All Read
- Login
- Get Prime
Cognizant Coding Question- 11
Access Denied!
To view this page you have to login first
Login here -
Trivia
Did you know 1 million people use PrepInsta everyday?
Notifications Mark All Read
To view this page you have to login first
Login here -
Did you know 1 million people use PrepInsta everyday?
#include
using namespace std;
int main()
{
int n;
cout<>n;
for(int i=1;i<=n;i++)
{
for(int k=1;k<=n-i;k++)
{
cout<<" ";
}
for(int k=1;k<=i;k++)
{
cout<<"*";
}
cout<<endl;
}