Lecture 149
//Procedures and Functions
//Code:
#include <iostream>
#include <conio.h>
using namespace std;
int fun(); //
Prototype
char fun1();
main ()
{
cout<<"\tCharacter \n";
cout<<fun1();
cout<<"\n\tInteger \n";
cout<<fun();
getch();
return 0;
}
int fun()
{
char ch;
cout<<"Enter any alphabet :
";
cin>>ch;
if(ch>=65
&& ch<=90)
return ch;
else
return ch+32;
}
char fun1()
{
char ch;
cout<<"Enter any alphabet :
";
cin>>ch;
if(ch>=65
&& ch<=90)
return ch;
else
return ch+32;
}
Output: