Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

do while loop in c

//This program stops when a number greater than 10 is printed and prints that, value greater than 10
#include <stdio.h>
main()
{

    int a;
    do
    {
        printf("
Enter your value: ");
        scanf("%d", &a);
    } while (a<10);
    printf("Value greater than 10");
    
    
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
5+2 =