May 22, 2023
program to use while loop is c language
#include <stdio.h>
int main()
{
int i = 1;
while (i <= 10)
{
printf("%d\t", i);
i = i + 1;
}
printf("\n");
return 0;
}
output
1 2 3 4 5 6 7 8 9 10
by : Ajaj Khan
Quick Summary:
program to use while loop is c language copy #include <stdio.h> int main() { int i = 1; while (i