google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a program to print first 5 natural odd numbers - 2nd puc computer science

Write a program to print first 5 natural odd numbers

Write a program to print first 5 natural odd numbers

#include<stdio.h>

#include<conio.h>

void main()

{

int i;

clrscr();

for(i=1;i<=10;i=i+2)

printf("%d,",i);

printf("\b.");

getch();

}

Output:

1,3,5,7,9.

Write a program to print first 5 natural odd numbers Write a program to print first 5 natural odd numbers Reviewed by Vision Academy on December 08, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.