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 
        printf("\n computer education");
        i++;                                                  // condition updated
      
                
    }
    return (EXIT_SUCCESS);
}


Output




while loop and their program write a name ten time using  while loop in netbeans














Comments

Popular posts from this blog

Create a structure TIME with members hours, minutes and seconds. Write a C program to add two time objects by passing structure variables to function and display result in H: M: S format.

Create a structure named company which has name, address, phone and no of Employee as member variables. Read name of company, its address, phone and no of Employee. Finally display these members’ value.

Write a c program to check a voting AGE condition using if-else