Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main()
- {
- int n1, n2, i,sum=0;
- printf("Enter two numbers to calculate: ");
- scanf("%d %d", &n1, &n2);
- for (i=0;i<n1;i++) sum=sum+n2;
- printf("%d",sum);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement