HomepageProgrammingC language Lokesh Kumar in C languageProgramming 27-Write a C program to print 1 to 10 numbers. Program: 27 Write a C program to print 1 to 10 numbers. #include #include void main() { int a=1; while(a<=10) { printf("\t%d\n", a); a=a+1; } getch(); } Output 1 2 3 4 5 6 7 8 9 10 Next Read: 28-Write a C program to calculate the sum of 1 to 100 numbers. » 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