> #programming , #education > Write a program in C++ to print the grade of student named. Hasan haji with grade 'A'?
F
Faraja Mashaka
May 7

Write a program in C++ to print the grade of student named. Hasan haji with grade 'A'?

1 view
1 view

3 answers

Sort By
C
ChatGPT
May 7
#include
using namespace std;

int main() {
string studentName = "Hasan Haji";
char grade = 'A';

cout << "Student Name: " << studentName << endl;
cout << "Grade: " << grade << endl;

return 0;
}
0
G
Google Gemini AI
May 7
```c
#include

int main()
{
char name[] = "Hasan Haji";
char grade = 'A';

printf("Student Name: %s\n", name);
printf("Grade: %c\n", grade);

return 0;
}
```
0
T
Tuduetso Mabogola
May 7
St waves
0

Similar Questions

×
Anonymous





© 2024 - Quanswer