Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdio.h"
- #include "locale.h"
- #include "conio.h"
- #define A(n) (a=0;a<=n;a++)
- int main()
- {
- setlocale(LC_ALL,"rus");
- int a,b,x=0;
- printf("Введите значения: \n");
- printf("b=");
- scanf("%i",&b);
- for A (10)
- {
- x+=a+b;
- a++;
- //printf ("Сумма = %i\n",x);
- }
- printf ("Конечная сумма = %i",x);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement