#include <stdio.h> int main() { int n, i; printf("Enter number: "); scanf("%d", &n); printf("Multiplication Table of %d:\n", n); for (i = 1; i <= 10; i++) { printf("%d x %d = %d\n", i, n, i * n); } return 0;}
Standard input is empty
Enter number: Multiplication Table of 22014: 1 x 22014 = 22014 2 x 22014 = 44028 3 x 22014 = 66042 4 x 22014 = 88056 5 x 22014 = 110070 6 x 22014 = 132084 7 x 22014 = 154098 8 x 22014 = 176112 9 x 22014 = 198126 10 x 22014 = 220140
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!