Posts by Hebert • 1 point
1 post
-
-2
votes3
answers405
viewsQ: Make a program that reads an integer N and then print the N first odd natural numbers
#include<stdio.h> #include<locale.h> int main(){ setlocale(LC_ALL,"portuguese"); int n,imp; printf("Digite um número:\n"); scanf("%d",&n); if(n!=0){//para Zero n ser considerado par…