Loop st
IT TOPPER BY VARDHAN RAJU
September 27, 2022
#include
int main() {
int i;
for(i=1;i<=20;i++)
{
if(i%2==0)
printf("%d - Hi\n",i);
else if(i%3==0)
printf("%d - Hello\n",i);
else if(i%10==0)
printf("%d - Good\n",i);
else if(i%5==0)
printf("%d - How are you?\n",i);
else
printf("%d - \n", i);
}
return 0;
}