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; }
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
+ 2
You are using = instead of == . Check again. And missing a || operator once.
Use { } for loop belong. Otherwise loop only have single statement.
+ 1
https://www.programiz.com/cpp-programming/examples/ASCII-value-character
I hope it's helpful to you