Reginaldojs

exercicio 3,lista 1

Aug 31st, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. int main(){
  4.     int a,b,idade;
  5.     printf("Em que ano voce nasceu?\n");
  6.     scanf("%d",&a);
  7.     printf("Digite em que ano nos estamos\n");
  8.     scanf("%d",&b);
  9.     idade=b-a;
  10.     printf("Portanto,voce tem ou esta proximo de completar %d anos!\n\n",idade);
  11.     system("pause");
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment