C Program To Print Multiplication Table Using For Loop

preview_player
Показать описание

Lets write a C program to print the multiplication table of the number entered by the user. The table should get displayed in the following form:

Example: Multiplication table of 29
29 x 1 = 29
29 x 2 = 58
29 x 3 = 87
29 x 4 = 116
29 x 5 = 145
29 x 6 = 174
29 x 7 = 203
29 x 8 = 232
29 x 9 = 261
29 x 10 = 290

C Programming Interview / Viva Q&A List

C Programming: Beginner To Advance To Expert
Рекомендации по теме
Комментарии
Автор

That's amazing bro very helpful for me ☺️ thank you so much bro.

ihsanali
Автор

You're amazing it helps me a lot 🤟😎

jakesontadena
Автор

Its only printing [num] * 11 = [the result]

moyokzm
Автор

How can I generate table of desired length entered by the user?

sswpsmp
Автор

Sir meri table execute hi nhi hori hai

divya
Автор

Hi. Im looking for a breakdown possible in a table format of how the following program arrives at the displayed number series. I have put pen to paper but am getting very lost. Im trying to learn C in my spare time but am confused by how this arrives at its numbers. Thank you.

/*C program to print the sum of all odd numbers from 1 to 100*/

#include <stdio.h>

int main(){

int sum = 0;

for (int i = 1; i <= 100; i = i + 2 )
{
sum = sum + i;
printf("%d ", sum);
}

return 0;
}

here's the number series: 1 4 9 16 25 36 49 64 81 100 121 144 169 196 225 256 289 324 361 400 441 484 529 576 625 676 729 784 841 900 961 1024 1089 1156 1225 1296 1369 1444 1521 1600 1681 1764 1849 1936 2025 2116 2209 2304 2401 2500 2500

bignaughtydog