View Code of Problem 52

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
	char ch[100];
	int t;
	for (int i = 0; i < 100; i++)
	{
	    ch[i]=getchar();
		t = i;
		if (ch[i] == '\n')
		{
			break;
		}
	}
	for (int i = t; i >= 0; i--)
	{
		cout << ch[i];
	}
	return 0;

}
/*
Main.cc:2:9: fatal error: conio.h: No such file or directory
 #include<conio.h>
         ^~~~~~~~~
compilation terminated.
*/

Double click to view unformatted code.


Back to problem 52