Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- char leerPalabra(){
- char c;
- scanf(" %c",&c);
- while(c!=' ' && c!='\t' && c!='\n' && c!=EOF){
- putchar(c);
- c=getchar();
- }
- return c;
- }
- int main() {
- int cod,edad;char c;
- printf("\t\t\tALUMNO CALIFICACIÓN\n");
- for(int i=0;i<90;i++) printf("*"); printf("\n");
- printf("Código\t\tNombre\t\t\tEdad\tRespondidas \t Correctas \t Incorrectas\t\tNota\n");
- while(scanf("%d",&cod)==1){
- printf("%d ",cod);
- while(scanf("%d",&edad)==0) c=leerPalabra();
- printf(" %d",edad);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment