A new journey with c Programming language

in hive-175254 •  2 years ago 

image.png

Source

We all have some dream and passion but not all of us are able to achieve them. We should atleast try and keep hardworking to reach where we want to reach.

I was learning coding sometime ( i will continue to learn it ) and today i printed a table for a number which might not be a difficult task for expert but for me i was happy to do it.

Below is my code :

#include <stdio.h>

int main() {
int num, i;

// You can enter a number here
printf("Enter a number: ");
scanf("%d", &num);

// Print the table of the given number
for (i = 1; i <= 10; i++) {
printf("%d x %d = %d\n", num, i, num * i);
}

return 0;
}

In this program, we first prompt the user to enter a number. We then use a for loop to print the table of the given number by multiplying the number by each integer from 1 to 10.

For example, if the user enters the number 5, the program will print the following table:

Screenshot 2022-12-11 162834.png

Moreover you can change the number 5 to any number and the table will be printed very easily.

As i am from India and understands hindi very well i have found a hindi teacher who can teach me coding in hindi.

Source

Now a days you can learn anything from youtube, you just have to give time and proper research to reach at the right place.

I will soon call myself a trader and a small programmer together.

Happy trading and keep learning what you love.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Being a programmer is really a big deal right now, my brother is training himself too and I am so proud of him, I wish you the best as you learn.

Thank you for your good wishes.