Loop st

#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; }

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.