Hi!!! This is my first time to post here and I have a problem and I want your help.....
This is the case my teacher gave me a question to add 1 to 100 using while loop and its really confusing me... but here is my idea and I jsut want you to help me What I am missing.... Thanks
#include <stdio.h>
#include<conio.h>
#define p printf
main()
{clrscr();
int a,b,c;
while(a>=1)
{
b=a+c
a=b+c
c++;
}
p("\n The Answer is:")
for(a>=0)
p("%d",a);
getch();
return 0;
}