Generation

generate functionMon, 12 Jun 2023

Realiza un programa usando do while

#include <iostream> using namespace std; int main() { int x; float y; do { cout <<"Ingrese la calificacion: "; cin >> x; cout << endl; if((x>=0)&&(x<=10)) { y = x * 0.4; cout <<"La nota es: " << y << endl; } else { cout <<"La nota debe estar entre 0 y 10" << endl; } }while((x<0)||(x>10)); return 0; }

Want to kickstart your project?Use the new AI Studio to create your code