Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(){
- int sekundi;
- scanf("%d",&sekundi);
- int sekundi_prvavrednost=sekundi; //ova da se zapamti vlezot
- int saati=sekundi/3600;
- sekundi=sekundi%3600; //preostanatite sekundi da se prodolzhat
- int mins=sekundi/60; //preostanatite so 60 se deli
- sekundi=sekundi%60; //najposledniot ostatok
- printf("Vo %d ima %d saati %d minuti %d sekundi\n",sekundi_prvavrednost,saati,mins,sekundi);
- //Iskreno neam pojma koj e izlezot ama vo ovoj stil beshe
- //snajdi se xD
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement