Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
119 views
in String Handling and I/O Functions by (29.6k points)
closed by

Suresh wants to print his name and native place using a C++ program. The program should accept name and native place first. 

Name is: Suresh Kumar 

Address is: Alappuzha

1 Answer

+1 vote
by (29.8k points)
selected by
 
Best answer

#include<iostream>

#include<cstdio>

using namespace std; 

int main() 

char name[20],place[20]; 

cout<<“Enter your name”;

cin.getline(name,80); 

cout<<“Enter your place”; 

cin.getline(place,80);

cout<<“Your name is puts(name);

cout<<“Your place is puts(place); 

}

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

...