20

#1
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>

int main(void)
{
int m,n,p;
double a,b,c;
char c1,c2;
/*printf("Introduceti 3 valori reale:");
if(scanf("%lf %lf %lf",&a,&b,&c)!=3)
{
printf("DE");
exit(1);
}
printf("Introduceti 3 valori intregi:");
if(scanf("%d %d %d",&m,&n,&p)!=3)
{
printf("DE");
exit(1);
}
printf("Introduceti 2 caractere:");
fflush(stdin);
scanf("%c %c",&c1,&c2);
printf("Valorile introduse sunt a=%g \t b=%g \t c=%g \t m=%d \t n=%d \t p=%d \t c1=%c \t c2=%c \t \n",a,b,c,m,n,p,c1,c2);
*/char g;
fflush(stdin);
printf("Introduceti un caracter ");
g = getchar();
putchar(g);
if(g>=97 && g<=122)
//printf("\n%c",g-32);
//else if(g>=65 && g<=90)
g=g-'a'+'A';
printf("\n%c",g);
getch();
return 0;

}
cron