Create a program that prints the uppercase equivalent of N lowercase letters. Make sure that inputs with functions.. are lowercase letters. (Lowercase ASCII value of a =97 and z is 122) Example output: Enter N: 5 Enter a lowercase letter: a Uppercase value: A Enter a lowercase letter: 1 Not a lowercase letter Enter a lowercase letter: A Not a lowercase letter Enter a lowercase letter: x Uppercase value: X Enter a lowercase letter: z Uppercase value: Z
c master
just joking bro..^^,
awh.. sorry sis.. hahaha..
google for ascii values of alphabets
yeah but i use turbo c T__T still looking..
what are you using for input characters?? array of characters or string?
string only bro.. we are not yet in arrays..^^,
looks like we have standard function for that http://www.roseindia.net/c-tutorials/c-string-uppercase.shtml
#include<stdio.h> #include<conio.h> void convert(char ch){ if(ch>=65 && ch<=90) ch=ch+32; printf("Upper Case =%c",ch); } void main() { clrscr(); char c; printf("Enter a Character"); scanf("%c",&c); convert(c); getch(); } *this program is vice-versa to what you want
Join our real-time social learning platform and learn together with your friends!