dump question need help

for(i=65 , i<=90 , i++)

Should be :
for(i = 'a'; i <= 'z'; i++)


No.
print characters from a-z by ascii table
Last edited on
closed account (48T7M4Gy)
for( char x = 65; x <= 90; x++)
{
cout etc ... << endl;
}

That's all you need. Try for(char x = 'a' etc ) as an exercise
closed account (48T7M4Gy)
1
2
3
4
5
6
7
8
9
10
  #include <iostream>
  
  using namespace std;

  int main()
{   
    for(char i = 'a'; i <= 'z'; i++)
    { cout << "the character is " <<  i << endl; }
  return 0 ;
}
Topic archived. No new replies allowed.