Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdlib.h>
  2.  
  3. int main() {
  4.   int nota  = 0;
  5.   int nota2 = 0;
  6.   do{
  7.   printf("Digite a primeira nota: ");
  8.   scanf("%d",&nota);
  9.   }while(nota < 0 && nota > 10);
  10.   do{
  11.   printf("Digite a segunda nota: ");
  12.   scanf("%d",&nota2);
  13.   }while(nota2 < 0 && nota > 10);
  14.   int media = nota/nota2;
  15.   printf("Sua média é %d",media);
  16.   system("pause");
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement