Advertisement
Sayukoo

Wielokrotnosc 2

Oct 8th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int x,i=1,w;
  5. int main()
  6. {
  7.     printf("Podaj ile chcesz miec wielokrotnosc liczby 2: ");
  8.     scanf("%d",&x);
  9.  
  10.     for(i=0;i<x;i++)
  11.     {
  12.             w=2*i;
  13.             printf("wielokrotnosc %d",i);
  14.             printf(": %d",w);
  15.             printf("\n");
  16.  
  17.  
  18.     }
  19.  
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement