Menu

COJ 2620 – Aaaaaaaah

January 1, 2017 - COJ

Output one ‘A’ then 4*N ‘a’ s and then one more ‘h’.

Language: C++

#include <iostream>
using namespace std;
 
int main() 
{
	int n,i;
	cin>>n;
	cout<<'A';
	for(i=1;i<=4*n;i++)
		cout<<'a';
	cout<<'h'<<endl;
	// your code goes here
	return 0;
}

(111)

It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on VK

Author of this post : safrastyan

Leave a Reply

Your email address will not be published. Required fields are marked *