class from descriptionTue, 25 Apr 2023

un programa que lea 5 números y que imprima los impares usando scanf y printf y for

#include <stdio.h> int main(){ int a,b,c,d,e; scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); if(a%2==1){printf("%d ",a);} if(b%2==1){printf("%d ",b);} if(c%2==1){printf("%d ",c);} if(d%2==1){printf("%d ",d);} if(e%2==1){printf("%d ",e);} return 0; }

Want to kickstart your project?Use the new AI Studio to create your code