Tuesday, 25 August 2015

Write and run a program to print following shape on screen using cout statement




#include"stdafx.h"
#include<iostream>
usingnamespace std;
int main()
{
cout<<"  /\\"<< endl;
cout<<"    /  \\"<< endl;
cout<<" /  \\"<< endl;
cout<<"  /      \\"<< endl;
cout<<" /        \\"<< endl;
cout<<"/..........\\"<< endl;
cout<<endl;
system("pause");
return 0;
}

No comments:

Post a Comment