Skip to main content

Posts

Showing posts from November, 2018

Featured

C Program to display spellings of number 1-10 on entry

C Program to display spellings of number 1-10 on entry.   #include<stdio.h>   void main() { int num; printf("Enter a number between 1-10:"); scanf("%d",&num); printf("\n"); switch (num) { case 1: printf("ONE"); break; case 2: printf("TWO"); break; case 3: printf("THREE"); break; case 4: printf("FOUR"); break; case 5: printf("FIVE"); break; case 6: printf("SIX"); break; case 7: printf("SEVEN"); break; case 8: printf("EIGHT"); break; case 9: printf("NINE"); break; case 10: printf("TEN"); break; default:         printf("THE ENTERED NUMBER IS NOT BETWEEN 1-10"); } } OUTPUTS

C Program to display spellings of number 1-10 on entry

C Program to display entered number with leading zeros and trailing zeros.

C Program to display the hexadecimal, decimal, octal number format of the entered numbers

C Program to calculate the value of nCr , n≥r using function

C Program to check whether a string is palindrome or not

C Program to calculate multiplication of 2 dimensional matrix

C program to calculate addition and subtraction of 2 dimensional matrix

C program to sort array elements in ascending order

C Program to enter elements for 3X3 matrix and display them

C program to sort array elements in descending order.

C Program to find the largest and smallest number from array elements

C Program to add the series: 1 + (1 + 2) + (1 + 2 + 3) + …+ (1 +2 +3 + …+n)

C program to generate all prime numbers within the given range.

C program to print Armstrong numbers between 100 to 1000

C Program to find sum of first n natural,even,odd numbers

C Program to print a string twenty times

C Program to display the menu to execute ADD, SUBTRACT, MULTIPLICATION, DIVISION

C Program to check whether a number is even or odd