Write a program to print a string using a for loop and the putchar function */
/* Assume Cat is a string */
#include
#include
char [80]
int i;
int main (){
strcpy (s,"cat");
i = 0;
while(s[i] 1 = '0')
putchar(s[i]);
1 ++ i
}
}
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 7, 2012, 5:58 AM