+ 5

I get ']' This in last of output of code to print A-Z using ASCII value plz check code and tell me where it is wrong.

#include<iostream> using namespace std; int main() { int i; for(i=65;i<=91;i++) { cout<<(char)i; } return 0; }

5th Jul 2017, 6:37 AM
Shivam Shandilya😊🙌
Shivam Shandilya😊🙌 - avatar
3 Answers
+ 8
http://www.asciitable.com/mobile/ you are going too far.. stop at 90
5th Jul 2017, 6:41 AM
jay
jay - avatar
+ 3
thanx bro both logic helped 😃
5th Jul 2017, 11:12 AM
Shivam Shandilya😊🙌
Shivam Shandilya😊🙌 - avatar