• Source
    1. #include<stdio.h>
    2. main() {
    3. int num1,num2,mul=0,i=1;
    4. printf("Enter the first number : ");
    5. scanf("%d",&num1);
    6. printf("\nEnter the second number : ");
    7. scanf("%d",&num2);
    8. while(i<=num1)
    9. {
    10. mul=mul+num2;
    11. i++;
    12. }
    13. printf("\n\n The result is : %d * %d = %d",num1,num2,mul);
    14. return 0;
    15. }