0

HOW TO WRITE ASCII CODE NEED HELP PLS

HOW DO I WRITE THIS A B C D E F G H I J K L M N O P Q R S T U V W X Y Z MY CURRENT CODE #include <iostream> using namespace std; int main() { char myChar = 65; for(myChar=65; myChar<91; myChar++) if ((myChar==70) || (myChar=75) || (myChar=80) (myChar=85) || (myChar=90) ) cout<<endl; cout<< myChar; return 0; }

15th Nov 2022, 2:41 PM
Zeiad
4 Réponses
+ 2
#include <iostream> using namespace std; int main() { int i; for(i=65;i<=90;i++) { cout<<(char)i<<endl; } return 0; } // And if you write uppercase alphabet character then this is the code, I hope it's helpful to you
15th Nov 2022, 2:52 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 2
You are using = instead of == . Check again. And missing a || operator once. Use { } for loop belong. Otherwise loop only have single statement.
15th Nov 2022, 2:53 PM
Jayakrishna 🇮🇳
15th Nov 2022, 2:46 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
15th Nov 2022, 4:32 PM
SoloProg
SoloProg - avatar