while loop and their program write a name ten time using while loop in netbeans
Q
write a name ten time using while loop in netbeans
while loop
programming tips
syntax
#include <stdio.h>
#include <stdlib.h>
/*
*
*/
int main(int argc, char** argv)
{
int i=1; // initialive loop variable
while(i<=10) // test the condition
{ // execute the loop
// statements
// statements
printf("\n computer education");
i++; // condition updated
}
return (EXIT_SUCCESS);
}
Comments
Post a Comment