Do While Loop Print 1 To 10 Number In C


#include<stdio.h> int main(){ int p=1; do{ printf("%d\t",p); p++; } while(p<=10); return 0; }

Output:-

1 2 3 4 5 6 7 8 9 1