User
Pass
2FA
 
 

Problema in C

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database
Author Message1898
Costi

[Freakazoid]



Status: Offline
(online 2 weeks ago)
Joined: 23 Mar 2011
Posts: 2125, Topics: 125
Location: Bucuresti

Reputation: 203.2
Votes: 42

     
Post Posted: 11-01-2016, 18:16:10 | Translate post to: ... (Click for more languages)

Am nevoie de ajutor cu o tema la info.

sa se realizeze un program in C care sa afiseze numerele impare ale vectorului. Acesta este enuntul.

0 0
  
Back to top
View user's profile Send private message
Necris

[Alcoholic Elon Musk]



Status: Offline
(since 28-09-2022 13:14)
Joined: 04 Dec 2010
Posts: 4378, Topics: 29
Location: Bucharest

Reputation: 3025.9
Votes: 76

   
Post Posted: 11-01-2016, 19:55:36 | Translate post to: ... (Click for more languages)

poate ajuta.

Si cine zice la Tulcea Los Tulceales, e un sat -


>PC Upgrade Guide<

Discounturi @ IT

Voucher PC-Garage: WK6Q4TII

0 0
  
Back to top
View user's profile Send private message
MindBreaker

[Metamorphosed]



Status: Offline
(since 04-02-2018 20:37)
Joined: 16 Jul 2010
Posts: 1320, Topics: 143
Location: Romania

Reputation: 564.8
Votes: 40

 
Post Posted: 11-01-2016, 20:43:43 | Translate post to: ... (Click for more languages)

Code:
#include <stdio.h>

int main ()
{
   int i, n, v[100];

   printf("n= ");
   scanf("%d", &n);

   for (i = 0; i < n; i++)
   {
      printf("v[%d]=", i + 1);
      scanf("%d", &v[i]);
   }

   for (i = 0; i < n; i++)
      if (v[i] % 2 != 0)
         printf("%d ", v[i]);

   return 0;
}

Here you go, dar e atat de simplu incat ar trebui sa incerci sa faci singur, asta bineinteles daca vrei sa ai un viitor in asa ceva...



4.0.6 Protection Paladin PvE Guide
4.3.4 Demonology Warlock PvE Guide

0 0
  
Back to top
View user's profile Send private message
Costi

[Freakazoid]



Status: Offline
(online 2 weeks ago)
Joined: 23 Mar 2011
Posts: 2125, Topics: 125
Location: Bucuresti

Reputation: 203.2
Votes: 42

     
Post Posted: 13-01-2016, 22:30:40 | Translate post to: ... (Click for more languages)

Multumesc pentru ajutor.

@Necris, era de mult scris asa cand ma jucamp SA:MP si nu l-am mai editat -))

0 0
  
Back to top
View user's profile Send private message
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> Trash -> Programming / Scripting / Database  


The time now is 16-04-2024, 23:12:28
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x