Code for Program to print input text in upper case in C Programming
#include<stdio.h>
#include<conio.h>
#include<string.h>
void up(char a[]);
void main()
{
char a[100];
clrscr();
printf("\nEnter The String : ");
scanf("%s",a);
printf("\nIn Upper Case : ");
up(a);
getch();
}
void up(char a[])
{
int i=0;
while(a[i]!='\0')
{
printf("%c",toupper(a[i]));
i++;
}
}
/*
******
OUTPUT
******
Enter The String : my world
Upper Case : MY WORLD
*/