Tuesday, 3 July 2018

how to declare character type variable in c++

Write a program that store three values in character type of variables and display
  solution

#include <iostream>
using namespace std;

int main() {
char a='A', b='D', c='G';
       
cout<<a<<"  "<<b<<"   "<<c  ;

return 0;
}

No comments:

Post a Comment