Questions tagged [dowhileloops]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
92 views

Greedy algorithm1

#include<cs50.h> #include<stdio.h> #include<math.h> int main() { float f=0; long int a=0,c=0; printf("Enter the float value:"); do { f = get_float(); }while(f <= 0); a = (...