fojtasd

Untitled

Oct 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. float nasobilka;
  8. cout << "Vypis malou nasobilku. Zadej nasobek, zkurve: ";
  9. cin >> nasobilka;
  10. if ((nasobilka>=0)&&(nasobilka<=10)){
  11. for (int a = 1; a <= nasobilka; a++)
  12. {
  13. cout << 1*nasobilka << " " << 2*nasobilka << " "<< 3*nasobilka << " "<< 4*nasobilka << " "<< 5*nasobilka << " "<< 6*nasobilka << " "<< 7*nasobilka << " "<< 8*nasobilka << " "<< 9*nasobilka << " "<< 10*nasobilka;
  14. }}
  15. else {
  16. cout << "TOTO NENI MALA NASOBILKA, TY ZLENIVELA PICO!";
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment