SHARE
TWEET

Untitled

a guest May 21st, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int x[7];
  7.     int y[7];
  8.  
  9.     printf("give xmin");
  10.  
  11.     scanf("%i", &x[0]);
  12.  
  13.  
  14.     printf("x\t");
  15.  
  16.     for(int i=0; i<=7; i++){
  17.         printf("%i\t",x[i]);
  18.         x[i+1] = x[i] + 1;
  19.     }
  20.  
  21.     printf("\ny\t");
  22.  
  23.     for(int i=0; i<=7; i++){
  24.         y[i] =(x[i]*x[i])-4*x[i] +2;
  25.         printf("%i\t",y[i]);
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top