Introduction to Computer Science
Thursday, December 25, 2014
A simple Program of Star box
#include <iostream> using namespace std; int main() { int n,i=1,j; cin>>n; while (i<=n) { j=1; while(j<=n) { cout<<"*"; j=j+1; } cout<<endl; i=i+1; } return 0; }
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment