daily pastebin goal
84%
SHARE
TWEET

Untitled

a guest Jan 21st, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <conio.h>
  3. int main(){
  4.     int brojevi[10];
  5.     int fx;
  6.     for(int i=0;i<10;i++){
  7.         do {
  8.        
  9.         printf("Unesite broj:");
  10.         scanf("%d",&brojevi[i]);
  11.         }while(brojevi[i]<-5||brojevi[i]>5);
  12.     }
  13.         for(int i=0;i<10;i++){
  14.         fx=3*brojevi[i]+2;
  15.         printf("%d %d\n",brojevi[i],fx);
  16. }
  17.    
  18.        
  19.    
  20.     getch();
  21.     }
RAW Paste Data
Top