can please someone teach me how to create this program using
while statement.. this is the output should look like
0
2
4
6
8
10
-thanks.. :) need it asap...
Answer Posted / manish soni bca 3rd year jaipu
#include<stdio.h>
#include<conio.h>
void main()
{
int cnt,term;
cnt=0;
while(cnt<6)
{
cnt+=1;
term=(cnt*2-1)^1;
printf("%d\n",term);
}
getch();
}
manish soni tagore biotech collage jaipur
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How can I remove the leading spaces from a string?
What is the difference between int main and void main?
What is echo in c programming?
What does typedef struct mean?
How macro execution is faster than function ?
Explain what are multidimensional arrays?
What is the use of a static variable in c?
What is structure packing in c?
What is the purpose of void in c?
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What is modeling?
What is the difference between formatted&unformatted i/o functions?
What does emoji p mean?
Why do we use int main instead of void main in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.