Search
 
SCRIPT & CODE EXAMPLE
 

CPP

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

Numbers Histogram in c++

#include<iostream>
using namespace std;

int main()
{
	int n, x;
	char ch;
	cin >> ch >> n;
	for (int i = 0; i < n; i++)
	{
		cin >>x;
		for (int i = 0; i < x; i++)
		{
			cout << ch;
		}
		cout << "
";
	}
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: rc.local not running centos 6 
Cpp :: waiting in a serial as the spool reflect the queue operation. Demonstrate Printer Behavior in context of Queue.Subject to the Scenario implement the Pop and Push Using C++. 
Cpp :: what is a .h file in c++ 
Cpp :: print numbers after decimal point c++ 
Cpp :: error C2011 
Cpp :: prefix using stack 
Cpp :: c++ iterate through constant list 
Cpp :: remove item from layout 
Cpp :: COs trigonometric function 
Cpp :: C++ Initializing a thread with a class/object 
Cpp :: *= c++ 
Cpp :: divisor summation 
Cpp :: c++ take n number from the user and store them in array and get the max, min number of them and also find the average/summation of these numbers 
Cpp :: print all substrings in c++ 
Cpp :: jquery datepicker default date not working 
Cpp :: c to c++ code converter 
Cpp :: transpose function example in c++ 
Cpp :: ternary operator rsut 
Cpp :: how to type cast quotient of two integers to double with c++ 
Cpp :: c++ to c code converter online 
Cpp :: ue4 c++ add tag 
Cpp :: Catcoder mars rover solution in c++ 
Cpp :: solve diamond inheritance c++ 
Cpp :: Runtime error(Exit status:153(File size limit exceeded)) c++ 
Cpp :: SDL_BlitSurface 
Cpp :: how to get a section of a string in c++ 
Cpp :: Write C++ program that will ask to choose from three cases. 
Cpp :: find largest number in each row in array c++ using function 
Cpp :: c++ CRL multiline string 
Cpp :: C++ thread header 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =