0

how to print once time using while loop in c program?

#include<stdio.h> int main() { int total,pass_students,fail_students; total=10; pass_students=9; fail_students=1; while (pass_students>=8){ printf("Bonus to instructor"); pass_students++; } } output:bonus to instructor.........................................................................................................................

14th Apr 2018, 9:38 AM
Jordan
Jordan  - avatar
1 Antwort
0
int count = 1; while (count == 1) { printf("I will say this only once!\n"); count--; }
14th Apr 2018, 9:48 AM
Emma