Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Test expression



Iterative statement



Specifer



Header file



" ; " after loop




Print a multiplication table of Nth number



// AHF C PROGRAM SOLVING

//solving here ITERATIVES STATEMENTS type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int n,i; //taking the number to continue loop pf("Enter any integer number: "); scanf("%d",&n); pf("\nThe multiplication table of %d is below.",n); for(i=0;i<=10;i++) pf("\n\t%d X %d = %d",n,i,(n*i)); //printing multiplication table return 0; }
OUTPUT:


© 2018 - All rights reserved