Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

write a program to type the name of the best teacher in the world and in the next line print his last name

0 votes
asked Jan 29, 2018 by Mansur Tagi (120 points)

2 Answers

0 votes
answered Feb 2, 2018 by anonymous
#include<stdio.h>

void main()

{

printf("first name of teacher /n last name of teacher");

}
0 votes
answered Feb 4, 2018 by Surabhi Sahay (140 points)
#include <iostream>

#include <string>

using namespace std;

int main() {

string fname, lname;

cout << "Enter teacher's first name: " << endl;

cin >> fname;

cout << "Enter teacher's last name: " << endl;

cin >> lname;

cout << lname << endl;

return 0;

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...