Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ////////////////////////////////////////////
- int main()
- {
- int n = 4;
- int nRsult;
- for(int k = 1; ; )
- {
- nRsult = n * k;
- printf("%d * %2d = %2d \n", n, k, nRsult);
- k++;
- if(k > 4) break;
- }
- }
- /*
- #include <stdio.h>
- ////////////////////////////////////////////
- int main()
- {
- int n = 5;
- int k = 1;
- printf("%d * %2d = %2d \n", n, k, n * k); k = 2;
- printf("%d * %2d = %2d \n", n, k, n * k); k = 3;
- printf("%d * %2d = %2d \n", n, k, n * k); k = k + 1;
- printf("%d * %2d = %2d \n", n, k, n * k); k = k + 1;
- printf("%d * %2d = %2d \n", n, k, n * k); k ++;
- printf("%d * %2d = %2d \n", n, k, n * k); k ++;
- printf("%d * %2d = %2d \n", n, k, n * k); k ++;
- printf("%d * %2d = %2d \n", n, k, n * k); k ++;
- printf("%d * %2d = %2d \n", n, k, n * k); k ++;
- printf("%d * %2d = %2d \n", n, k, n * k);
- }
- */
- /*
- #include <stdio.h>
- ////////////////////////////////////////////
- int main()
- {
- int n = 5;
- int k = 1;
- printf("%d * %d = %d \n", n, k, n * k); k = 2;
- printf("%d * %d = %d \n", n, k, n * k); k = 3;
- printf("%d * %d = %d \n", n, k, n * k); k = k + 1;
- printf("%d * %d = %d \n", n, k, n * k); k = k + 1;
- printf("%d * %d = %d \n", n, k, n * k); k ++;
- printf("%d * %d = %d \n", n, k, n * k);
- }
- */
- /*
- #include <stdio.h>
- ////////////////////////////////////////////
- int main()
- {
- int n = 5;
- int k = 3;
- printf("n * k = %d, ", n * k);
- printf("n / k = %d \n", n / k);
- }
- */
- /*
- #include <stdio.h>
- void Max();
- ////////////////////////////////////////////
- int main()
- {
- printf("1) SONY \n");
- Max();
- }
- ////////////////////////////////////////////
- void Max()
- {
- printf("%s \n", "2) SONY");
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement