#include<conio.h>
#include<stdio.h>
void main()
{
char convert(char);
char ch,r;
clrscr();
printf("enter the character\n");
scanf("%c",&ch);
r=convert(ch);
printf("the uppercase conversion of %c is %c",ch,r);
getch();
}
char convert(char ch)
{
return (ch-32);
}
#include<stdio.h>
void main()
{
char convert(char);
char ch,r;
clrscr();
printf("enter the character\n");
scanf("%c",&ch);
r=convert(ch);
printf("the uppercase conversion of %c is %c",ch,r);
getch();
}
char convert(char ch)
{
return (ch-32);
}
No comments:
Post a Comment