1
11
121
1331
This program is to be made in c using single for loop.?
int ele = 1;
for(int i=0; i%26lt;=3; i++){
printf (ele);
ele *= 11;
}
try this code you'll get the result...
and bcoz i am not that much familiar with C so plz check the syntax...
otherwise the code will run...
Reply:foreach(Question q in myHomework){
q.webPost("Yahoo! Answers");
}
Reply:You just have to times it time 11, somthing like
#include %26lt;stdio.h%26gt;
int main()
{
int i;
for(i=1;i%26lt;=1331;i=i*11)
printf("%d\t\n",i);
return(0);
}
Why do you need this, I'm learning it from abook and I knew it off the top of my head!!
Please rate me best!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment