Computer Science, asked by pawarjay2112, 11 months ago

write the program to do following using for and do while loop 1+3+5+7+...n the value of n should be accepted from user​

Answers

Answered by SMAILY123
4

Answer:

#include<stdio.h>

#include<conio.h>

int main()

{

clrscr();

int i,j,a;

printf("enter a num");

scanf("%d",&a);

for(i=0;i<10;i++)

{

for(j=0;j<10;j++)

}

if(a=>2)

getch();

return 0;

}

Explanation:

Similar questions