Hii I have developed a code in which i have two check those 2 digit numbers whose 3 times sum is equal to the number
eg:-27=3(2+7)
#include<conio.h>
#include<stdio.h>
int main()
{
clrscr();
int a,b,n;
long sum=0;
loop:for(n=24;n<=28;n++)
{
a=n/10;
b=n%10;
sum=sum+(a+b);
}
if(n==(3*sum))
{
printf("%d \n",n);
}
else
{
goto loop;
}
getch();
return 0;
}
However i am only getting a blank screen with a cursor
can anyone explain