Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

FIAE Lösung GA1 3.HS

Empfohlene Antworten

Veröffentlicht

Meine Lösung zum 3. HS in der GA1 FIAE (nicht BW) in C++ würde so aussehen:

#include <iostream>

#include <string>

using namespace std;

int main()

{

//Variablen:

int zeitwert=0,woche=0,tag=0,stunde=0,minute=0,sekunde=0;

string stempel="";

cout << "Zeit in Sekunden angeben:";

cin >> zeitwert;

while (zeitwert - 604800 >= 0)

{

zeitwert -= 604800;

woche++;

}

while (zeitwert - 86400 >= 0)

{

zeitwert -= 86400;

tag++;

}

while (zeitwert - 3600 >= 0)

{

zeitwert -= 3600;

stunde++;

}

while (zeitwert - 60 >= 0)

{

zeitwert -= 60;

minute++;

}

sekunde = zeitwert;

cout << woche << " Wochen : " << tag << " Tage : " << stunde << " Stunden : " << minute << " Minuten : " << sekunde << " Sekunden" << "\n";

return 0;

}

Pflichtet mir jemand bei?

warum nur warum erfinden die leute modulo immer wieder neu?...

ist es denn so schwer mod zu verwenden... *kopfschüttel*

so far...

warum nur warum erfinden die leute modulo immer wieder neu?...

ist es denn so schwer mod zu verwenden... *kopfschüttel*

so far...

Ist schon klar, aber in dem Moment war's mir egal.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.