HomepageProgrammingC language Lokesh Kumar in C languageProgramming 29-Write a C program to display the table of a given number. Program: 29 Write a C program to display the table of a given number. #include #include void main() { int i=1, num; printf("Enter any number: "); scanf("%d", &num); while(i<=10) { printf("%d x %d = %d\n", num, i, num*i); i=i+1; } getch(); } Output Enter any number: 5 5 x 1 = 5 5 x 2 = 10 5 x 3 = 15 5 x 4 = 20 5 x 5 = 25 5 x 6 = 30 5 x 7 = 35 5 x 8 = 40 5 x 9 = 45 5 x 10 = 50 Next Read: 30-Write a C program to find the length of a given number. » Programs Lokesh Kumar: Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking. Leave a Comment Related Post Q1 C Array, What are Arrays in C. Properties, Advantages, Disadvantages, Declaration and Initialization of Arrays. https://youtu.be/GUKw5BPSMUM Definition of C Array: An array is a collection of similar type of data… Counting Coins – Create a function to calculate the sum of coins, read Input from STDIN and print output to STDOUT Counting Coins Problem Statement: Create a function which can calculate the sum of the total… Q6. Compiler Behind the scene. How does compilation work. How many phases are there in Compilations? PreProcessor, Compiler, Assembler, Linker and Loader. Program: 150 https://youtu.be/h5qc1tBXMwA Compilation: The Compilation is a process of converting the source code or… Leave a Comment
Leave a Comment