Facebook
From sidratul, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 196
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int i;
  6.     for (i=0; i<255; i++)
  7.     {
  8.         cout<<"ASCII Value: "<< char (i)<<endl;
  9.     }
  10.  
  11.  
  12.     return 0;
  13. }
  14. #include<iostream>
  15. using namespace std;
  16. int main()
  17. {
  18.     int i,row,j;
  19.  
  20.     cout<<"Enter the row: ";
  21.     cin>>row;
  22.     for (i=1; i<row; i++)
  23.     {
  24.         for(j= 1; j<=i; j++)
  25.         {
  26.             cout<<j;
  27.      }
  28.      cout<<"\n";
  29.     }
  30.     return 0;
  31. }
  32.