[Solved] cin using char type array
#include <iostream> #include <conio.h> #include <iomanip> using namespace std; int main(){ int age , years ; char name[20]; cout <<“Enter your age in years: “<< endl; cin >> years; cout <<“Enter your name in years: ” <<endl; cin >> name; age = years*12; cout << ” Your age in months is: ” << age <<endl; … Read more