Your IP : 216.73.216.40


Current Path : /var/www/html/bibhas.ghoshal/ITP_2019/lab/
Upload File :
Current File : /var/www/html/bibhas.ghoshal/ITP_2019/lab/prog8.c

#include <stdio.h>

int main()
{
	char schar = 250;
	unsigned char uchar = 250;
	char letter = 'A';
	int numeral = '9';
	
	printf("schar = %d\n",schar);		/* know char default on yoour system */
	printf("uchar = %d\n",uchar);
	
	/* printing the entire alphabets in uppercase */
	while (letter <= 'Z') {			/* Using 'Z' instead of its ASCII Value */
		printf("%c ",letter);		/* makes the code portable. */
		letter++;			/* This is letter = letter + 1 */
	}
	
	printf("\n\t\tNext line starts after 16 spaces and also beeps\07\n");
	
	/* printing all digits of base-10 system in reverse */
	while (numeral >= '0') { 		/* This code is also portable because */
		printf("%c ",numeral);		/* '0' is used instead of ASCII value. */
		numeral--;			/* This is numeral = numeral -1 */
	}

	return 0;
}