# include "iostream.h" # include "conio.h" char convert(char ch) { return(ch -32); } int increment(int n) { return(++n); } void main() { int num; char ch1; clrscr(); cout<< "Enter a character in lower case "; cin >> ch1; cout << "Enter an integer "; cin >> num; cout<< "\nUpper Case Aplhabet is => " << convert(ch1); cout<< "\nIncremented Integer is => " << increment(num); }
Monday, 19 December 2011
C and C++ program Program to convert the lowercase letter into uppercase and to increment an integer
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment