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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 7, 2012, 1:58 AM EDT