Advertisement
TwiNNeR

Sekundi vo vreme

Oct 14th, 2014
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.   int sekundi;
  5.   scanf("%d",&sekundi);
  6.   int sekundi_prvavrednost=sekundi; //ova da se zapamti vlezot
  7.   int saati=sekundi/3600;
  8.   sekundi=sekundi%3600; //preostanatite sekundi da se prodolzhat
  9.   int mins=sekundi/60; //preostanatite so 60 se deli
  10.   sekundi=sekundi%60; //najposledniot ostatok
  11.  
  12.   printf("Vo %d ima %d saati %d minuti %d sekundi\n",sekundi_prvavrednost,saati,mins,sekundi);
  13.   //Iskreno neam pojma koj e izlezot ama vo ovoj stil beshe
  14.   //snajdi se xD
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement