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
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
Social Sciences,
5 months ago
English,
5 months ago
Computer Science,
5 months ago
Accountancy,
11 months ago
Biology,
11 months ago
English,
1 year ago
Math,
1 year ago